overflowMode property Null safety

OverflowMode overflowMode

Action on data labels when it’s overflowing from its region area.

The overflowing data label rendering behavior can be changed based on this. If overflowMode property is set to OverflowMode.none then the labelIntersectAction takes the priority, else overflowMode takes the priority.

Note: This is applicable for pie, doughnut, pyramid, and funnel series types alone.

Defaults to OverflowMode.none.

Widget build(BuildContext context) {
  return SfCircularChart(
    series: <PieSeries<SalesData, num>>[
      PieSeries<SalesData, num>(
        dataLabelSettings: DataLabelSettings(
          isVisible: true,
          overflowMode: OverflowMode.shift


final OverflowMode overflowMode;