getY method

double getY(
  1. double y
)

Implementation

double getY(double y) => (maxValue - y) * scaleY + chartRect.top;