How to add onclick event when click on barchart with specific data pass for that bar only please help ?
Hello Muhammad,
I am attaching a sample project to demonstrate the seriesMouseLeftButtonDown being used to get the underlying data item for the bar that was clicked.
This sample also demonstrates the marker functionality asked about here: https://es.infragistics.com/community/forums/f/ignite-ui-for-angular/124340/chart-cutomization-like-this
Please let me know if you have any other questions or concerns on this matter.
ChartStyling.zip
is there any demo of it ?
In order to add an onClick event for a particular series in the chart, I would recommend hooking the seriesMouseLeftButtonDown event on the IgxDataChart. The event arguments for this event will have information about the series and the item representing the point of the series that you have clicked.