calculateOffsets method
Calculates the offsets of the chart to the border depending on the position of an eventual legend or depending on the length of the y-axis and x-axis labels and their position
Implementation
@override
void calculateOffsets() {
super.calculateOffsets();
calcMinMax();
_yAxisRenderer.computeAxis(
_yAxis!.axisMinimum ?? 0, _yAxis!.axisMaximum ?? 0, _yAxis!.inverted);
_xAxisRenderer.computeAxis(
xAxis!.axisMinimum ?? 0, xAxis!.axisMaximum ?? 0, false);
if (legend != null && !legend!.isLegendCustom) {
legendRenderer!.computeLegend(getData());
}
}