showCumulativeValues property

bool showCumulativeValues
final

To show the cumulative values in stacked type series charts.

Defaults to false.

Widget build(BuildContext context) {
  return SfCartesianChart(
    series: <StackedColumnSeries<SalesData, num>>[
      StackedColumnSeries<SalesData, num>(
        dataLabelSettings: DataLabelSettings(
          isVisible: true
        ),
      ),
      StackedColumnSeries<SalesData, num>(
        dataLabelSettings: DataLabelSettings(
          isVisible: true,
          showCumulativeValues: true
        ),
      ),
    ],
  );
}

Implementation

final bool showCumulativeValues;