apexcharts / Blazor-ApexCharts

A blazor wrapper for ApexCharts.js
https://apexcharts.github.io/Blazor-ApexCharts
MIT License
788 stars 91 forks source link

How to catch Clicks on Annotations? #383

Closed raceecondition closed 7 months ago

raceecondition commented 8 months ago

https://apexcharts.com/docs/options/annotations/ shows there is mouseEnter, mouseLeave and click Events on Annotations. How can i get that functionality?

joadan commented 7 months ago

Hello,

Currently this is not available. I'll try to have a look if it can be implemented.

joadan commented 7 months ago

Sample at, https://apexcharts.github.io/Blazor-ApexCharts/features/annotations#events

Please note this is not released yet. Looks like there is an issue with dynamically added annotations, most likely this is an limitation in apexchart.js, https://codepen.io/joadan-the-sasster/pen/WNmdNRq

joadan commented 7 months ago

fixed in version 2.3.0, https://github.com/apexcharts/Blazor-ApexCharts/releases/tag/v2.3.0