• Open in:

Manipulate chart data with mouse

Click and move mouse anywhere on plot area to change the graph.

Key implementation details

We setup pointer event handlers and on globalpointermove event handler check whether the user is dragging a graph’s point and set its value according to the pointer coordinates converted to value with the positionToValue() method.

Related tutorials

Demo source