chartToPlot method

Offset chartToPlot(
  1. Offset chartPosition
)

Converts a position local to the whole chart into plot-local coordinates.

Implementation

Offset chartToPlot(Offset chartPosition) => chartPosition + chartRect.topLeft;