getRequiredBaseOffset method

  1. @override
double? getRequiredBaseOffset()
override

Returns the base offset needed for the chart without calculating the legend size.

@return

Implementation

@override
double? getRequiredBaseOffset() {
  return xAxis!.enabled && xAxis!.drawLabels
      ? xAxis!.labelRotatedWidth.toDouble()
      : Utils.convertDpToPixel(10);
}