spacing property
Spacing between the box plots.
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 box plots. For example, setting 20% spacing and 100% width renders the box plots with 80% of total width.
Also refer CartesianSeries.width
.
Defaults to 0
.
Widget build(BuildContext context) {
return SfCartesianChart(
series: <BoxAndWhiskerSeries<SalesData, num>>[
BoxAndWhiskerSeries<SalesData, num>(
spacing: 0.5,
),
],
);
}
Implementation
final double spacing;