apexcharts / Blazor-ApexCharts

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

OnLegendClicked being triggered only when clicking on the first element in the legend #464

Open Vunlinur opened 1 month ago

Vunlinur commented 1 month ago

Description: The OnLegendClicked event is triggered only when clicking on the first element in the legend. Any subsequent elements do not trigger this event. Occurs at least for Pie and Donut charts. Not tested for other chart types.

Repro Steps:

  1. Create a Donut or a Pie chart with more than 1 element in the data series.
  2. Subscribe to the OnLegendClicked event.
  3. Click on each element in the legend while monitoring that event.

Result: Notice that only clicking on the first element triggers OnLegendClicked

joadan commented 4 days ago

This will be fixed in the next version, sample here, https://apexcharts.github.io/Blazor-ApexCharts/events/legend-click#no%20axis%20chart