XYGraphPointerEventScope

A scope that provides context for pointer events within an XYGraph, allowing conversion between screen coordinates and graph data coordinates.

Parameters

X

The data type of the x-axis.

Y

The data type of the y-axis.

Functions

Link copied to clipboard
abstract fun scale(position: Offset): Point<X, Y>

Transforms a screen coordinate position in pixels, relative to the plot area, to a Point in the graph's data coordinate system.