- Welcome, Guest. Please Login or Register
MindFusion  
  We have released initial version of MindFusion.JavaScript pack. It includes chart, diagram, calendar, map, virtual keyboard, gauge and UI components. Here are more details and live demo for anyone interested.  
  HomeHelpSearchLoginRegister   
     
     
   
 
Page Index Toggle Pages: 1 Send Topic Print  
Event Listener for bar chart
Read 680 times

Nilesh Jagtap   Offline
YaBB Newbies
*
Posts: 2
I Love MindFusion!


   
     
 
Event Listener for bar chart
Mar 6th, 2018 at 5:34am
 
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
 
 
 
IP Logged    
 
     

Lyubo   Offline
Senior Member
****
Posts: 318
Gender: male
MindFusion team


   
     
 
Re: Event Listener for bar chart
Reply #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.

Regards,
Lyubo
 
 
 
IP Logged    
 
     

Lyubo   Offline
Senior Member
****
Posts: 318
Gender: male
MindFusion team


   
     
 
Re: Event Listener for bar chart
Reply #2 - Mar 6th, 2018 at 12:36pm
 
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
 
 
 
IP Logged    
 
     

Nilesh Jagtap   Offline
YaBB Newbies
*
Posts: 2
I Love MindFusion!


   
     
 
Re: Event Listener for bar chart
Reply #3 - Mar 12th, 2018 at 5:22am
 
Thank you for quick response.

Cheers!
 
 
 
IP Logged    
 
     
Page Index Toggle Pages: 1 Send Topic Print