valueField property

String valueField
final

Value field value for SMA indicator.

Value field determines the field for the rendering of SMA indicator.

Defaults to close.

Widget build(BuildContext context) {
 return SfCartesianChart(
   indicators: <TechnicalIndicators<Sample, num>>[
     SmaIndicator<Sample, num>(
       seriesName: 'Series1'
       period: 4,
       valueField: 'low'
     ),
   ],
   series: <ChartSeries<Sample, num>>[
     HiloOpenCloseSeries<Sample, num>(
       name: 'Series1'
     )
   ]
 );
}

Implementation

final String valueField;