spacing property

double spacing
final

Spacing between the columns.

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

Spacing also affects the width of the range column. For example, setting 20% spacing and 100% width renders the column with 80% of total width.

Defaults to 0.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           series: <RangeColumnSeries<SalesData, num>>[
               RangeColumnSeries<SalesData, num>(
                 spacing: 0,
               ),
             ],
       ));
}

Implementation

final double spacing;