showCumulativeValues property

bool showCumulativeValues
final

To show the cummulative values in stacked type series charts.

Defaults to false.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           series: <SplineSeries<SalesData, num>>[
               StepAreaSeries<SalesData, num>(
                 dataLabelSettings: DataLabelSettings(
                      isVisible: true,color: Colors.yellow
                      showCumulativeValues:true,
         ),
               ),
             ],
       ));
}

Implementation

final bool showCumulativeValues;