computeAxis method
Computes the axis values.
@param min - the minimum value in the data object for this axis @param max - the maximum value in the data object for this axis
Implementation
@override
void computeAxis(double min, double max, bool inverted) {
// calculate the starting and entry point of the y-labels (depending on
// zoom / contentrect bounds)
if (viewPortHandler!.contentWidth() > 10 &&
!viewPortHandler!.isFullyZoomedOutX()) {
MPPointD p1 = trans!.getValuesByTouchPoint1(
viewPortHandler!.contentLeft(), viewPortHandler!.contentTop());
MPPointD p2 = trans!.getValuesByTouchPoint1(
viewPortHandler!.contentRight(), viewPortHandler!.contentTop());
if (inverted) {
min = p2.x;
max = p1.x;
} else {
min = p1.x;
max = p2.x;
}
MPPointD.recycleInstance2(p1);
MPPointD.recycleInstance2(p2);
}
computeAxisValues(min, max);
}