Posted 24 March 2023, 2:33 pm EST
I want to handle a event when a series is clicked on wjChart.FlexPie. seriesClick is not recongnized
Forums Home / Wijmo / General Discussion
Posted by: raja.amirapu on 24 March 2023, 2:33 pm EST
Posted 24 March 2023, 2:33 pm EST
I want to handle a event when a series is clicked on wjChart.FlexPie. seriesClick is not recongnized
Posted 26 March 2023, 8:56 pm EST
Hi,
As per our understanding, you want to handle the click event on the Pie chart i.e. handle the event whenever a slice in the Pie chart is clicked, if so then you can handle the click event on the Chart’s host element, and use the hitTest method of the FlexPie Chart to get detailed information about the current Pie slice/ series on which the click event has happened.
You can also handle the selectionChanged event of the Pie chart if it fits your requirements,(You’ll need to set the selectionMode to ‘Point’ to use this event as by default it is set to ‘None’).
Please refer to the following sample for a demonstration of the same - https://jscodemine.grapecity.com/share/1GS1iWGsPEiVBJQy82uRyQ/
In case, if there is something we missed, please let us know.
Regards