priceAtY method
Converts screen Y coordinate inside main pane to financial price.
Implementation
double priceAtY(double y) {
final chartWidth = (_viewport.viewportWidth - _priceAxisWidth).clamp(
10.0,
double.infinity,
);
final bounds = Rect.fromLTWH(0, 0, chartWidth, mainPaneHeight);
return CoordinateConverter.yToPrice(y, bounds, currentPriceRange);
}