volumeValueMapper property

ChartIndexedValueMapper<num?>? volumeValueMapper
final

Volume of series.

This value is mapped to the series.

Defaults to null.

Widget build(BuildContext context) {
 return SfCartesianChart(
   indicators: <TechnicalIndicator<Sample, num>>[
     AccumulationDistributionIndicator<Sample, num>(
       seriesName: 'Series1',
       volumeValueMapper: (dynamic data, _) => data.y,
     ),
   ],
   series: <CartesianSeries<Sample, num>>[
     HiloOpenCloseSeries<Sample, num>(
       volumeValueMapper: (Sample sales, _) => sales.volume,
       name: 'Series1'
     )
   ]
 );
}

Implementation

final ChartIndexedValueMapper<num?>? volumeValueMapper;