spacing property

double spacing

Spacing between the data points in waterfall chart.

The value ranges from 0 to 1, where 1 represents 100% and 0 represents 0% of the available space.

Spacing affects the width of the bars in waterfall. For example, setting 20% spacing and 100% width renders the bars with 80% of total width.

Also refer CartesianSeries.width.

Defaults to 0.

Widget build(BuildContext context) {
  return SfCartesianChart(
    series: <WaterfallSeries<SalesData, num>>[
      WaterfallSeries<SalesData, num>(
        spacing: 0.5,


final double spacing;