showZeroValue property Null safety

bool showZeroValue
final

Hides the data label and its connector line, if the data point value is 0 (Zero).

If the data label is enabled, it will be visible for all the data points in the series. By using this property, we can hide the data label and its connector line, for the data points if its value is 0 (Zero).

Defaults to true.

Widget build(BuildContext context) {
  return SfCircularChart(
    series: <PieSeries<SalesData, num>>[
      PieSeries<SalesData, num>(
        dataLabelSettings: DataLabelSettings(
          isVisible: true,
          showZeroValue: false
        ),
      ),
    ],
  );
}

Implementation

final bool showZeroValue;