rangeBand property

  1. @override
double get rangeBand

Returns the rangeBand width in pixels.

The rangeBand is determined using the RangeBandConfig potentially with the measured step size. This value is used as the bar group width. If StepSizeConfig is set to auto detect, then you must wait until after the chart's onPostLayout phase before you'll get a valid number.

Implementation

@override
double get rangeBand {
  _configureScale();
  return _scaleFunction.rangeBandPixels;
}