Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

javascript amCharts graph item click event

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.

like image 575
Vivek Avatar asked Oct 01 '12 06:10

Vivek


1 Answers

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/

like image 172
zeroin Avatar answered Oct 05 '22 22:10

zeroin