Chart.toVirtualPoint Method

Converts a screen pixel position to a position scrolled by the viewport, if currently zoomed in, so it can be placed along the entire lengths of the axes.
 

Parameters

point

Type: Object
An object with properties:
     x       [type: Number]      - The number of pixels to the right of the left edge of the chart.
     y       [type: Number]      - The number of pixels below the top edge of the chart.
 

Return Value


Type: Object
An object with properties:
     x       [type: Number]      - The number of pixels to the right of the left edge of the chart in addition to the number of pixels the viewport is scrolled to the left.
     y       [type: Number]      - The number of pixels below the top edge of the chart in addition to the number of pixels the viewport is scrolled up.