spacing property
Spacing between the bars in histogram series.
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 bar. For example, setting 20% spacing and 100% width renders the bar with 80% of total width.
Defaults to 0
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
selectionGesture: ActivationMode.doubleTap,
series: <HistogramSeries<SalesData, num>>[
HistogramSeries<SalesData, num>(
spacing: 0,
),
],
));
}
Implementation
final double spacing;