getAxis method

YAxis? getAxis(
  1. AxisDependency axis
)

Returns the y-axis object to the corresponding AxisDependency. In the horizontal bar-chart, LEFT == top, RIGHT == BOTTOM

@param axis @return

Implementation

YAxis? getAxis(AxisDependency axis) {
  if (axis == AxisDependency.left) {
    return _axisLeft;
  } else {
    return _axisRight;
  }
}