We are evaluating different javascript chart options for one of the charting requirement in our product. But going through the JS chart for Bar Chart, I did not find any clear documentation for

click

events.

Could you please post a link to document or a sample example where we can click on bar items to drill down further into data.

Thanks,Nilesh

IP Logged

LyuboOfflineFull Member

Posts: 191
Gender:

MindFusion team

Re: Event Listener for bar chartReply #1 - Mar 6th, 2018 at 10:00am

Hello,

The Dashboard control and the various inheriting chart classes expose the DataItemClicked event, which is raised, when a chart data element is clicked by the user. To subscribe to the event, pass a handler function like this:

Code (Javascript):

barChart.dataItemClicked.addEventListener(function (args) {
// do something in response to the event.
});

We will provide you with an example showing a possible way to drill down into data shortly.