You can run these events on three types of charts:
- Default bar chart
- Feed chart with live data
- History chart with drilldown functionality
When you interact with the chart, a console view shows you the JSON that is returned and logged from the event.
All events return data about the object to which they relate. Interaction events, like nodeclick or plotmouseover, return information about the part of the chart with which you’re interacting. Data manipulation events return information about what was changed on the chart, including the JSON passed to any of the data manipulation methods like setdata or modify.
What can you do with event data? Just about anything you want. Make AJAX requests, modify DOM elements, even draw new charts. The ZingChart Events API ties nicely with the ZingChart Methods API, allowing for extremely customizable chart interactions. By using the Event Playground, you can determine exactly what events you need to make a fantastic interactive chart.
A Better ZingChart
This is just one way our team has been hard at work to make it easier to include and customize our interactive charts in your projects. You might also be interested in these helpful options: