问题
In amCharts flash chart there is a event name clickGraphItem which work as click on graph item and after fetching this event we can do any action on graph item click.
I need the same functionality in javascript amCharts. So is it possible to implement clickGraphItem in javascript amCharts?
Please provide solution. Any source code would be appreciated.
回答1:
You can add event handlers to the AMCharts Javascript library in the following way
// add click listener
chart.addListener("clickGraphItem", handleClick);
Here is jsFiddle for this:
http://jsfiddle.net/amcharts2/cV8GG/
来源:https://stackoverflow.com/questions/12668482/javascript-amcharts-graph-item-click-event