apexcharts / react-apexcharts

πŸ“Š React Component for ApexCharts
https://apexcharts.com
MIT License
1.31k stars 159 forks source link

Get xAxis and yAxis with MouseMove event #607

Open berkaykirtillii opened 5 months ago

berkaykirtillii commented 5 months ago

I want to show the x and y coordinates of the points my mouse is on with the mouseMove event. At the same time, I will create a different event when clicked, but I cannot get xAxis and yAxis values ​​in this event. While I can do this in the Selection event, how can I do the same in the mouseMove event?

image image

As seen in the documentation, the selection function returns xAxis and yAxis to me, but I could not find them in the parameters in mouseMove.

An example of the result I want to achieve is as follows: crosshair value