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 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 SfCartesianChart(
    series: <ColumnSeries<SalesData, num>>[
      ColumnSeries<SalesData, num>(
        isTrackVisible: true,
        spacing: 0.5
      ),
    ],
  );
}

Implementation

final double spacing;