trackPadding property

double trackPadding
final

Padding of the track.

By default, track will be rendered based on the bar’s available width and spacing. If you wish to change the track width, you can use this property.

Defaults to 0.

Widget build(BuildContext context) {
  return SfCartesianChart(
    series: <HistogramSeries<SalesData, num>>[
      HistogramSeries<SalesData, num>(
        isTrackVisible: true,
        trackPadding: 2
      ),
    ],
  );
}

Implementation

final double trackPadding;