Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Event Listener for bar chart (Read 3461 times)
Nilesh Jagtap
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 2
Joined: Mar 6th, 2018
Event Listener for bar chart
Mar 6th, 2018 at 5:34am
Print Post  
Hi Team,

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
  
Back to top
 
IP Logged
 
Lyubo
YaBB Moderator
*****
Offline


MindFusion team

Posts: 511
Joined: Jun 17th, 2010
Re: Event Listener for bar chart
Reply #1 - Mar 6th, 2018 at 10:00am
Print Post  
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)
Select All
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.

Regards,
Lyubo
  
Back to top
 
IP Logged
 
Lyubo
YaBB Moderator
*****
Offline


MindFusion team

Posts: 511
Joined: Jun 17th, 2010
Re: Event Listener for bar chart
Reply #2 - Mar 6th, 2018 at 12:36pm
Print Post  
Hi,

The following sample shows one way to implement drilling down to a more detailed view of the data and then back to the summary:
https://mindfusion.eu/_samples/DrillDown.zip.

Regards,
Lyubo
  
Back to top
 
IP Logged
 
Nilesh Jagtap
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 2
Joined: Mar 6th, 2018
Re: Event Listener for bar chart
Reply #3 - Mar 12th, 2018 at 4:22am
Print Post  
Thank you for quick response.

Cheers!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint