babuu Report post Posted September 17, 2012 Hi Team, How to javascript click evet in legend of PIE CHAR? Please help me. Thanks Babu Share this post Link to post Share on other sites
babuu Report post Posted September 17, 2012 Please help on this Hi Team, How to javascript click evet in legend of PIE CHAR? Please help me. Thanks Babu Share this post Link to post Share on other sites
babuu Report post Posted September 18, 2012 Please help me...... Share this post Link to post Share on other sites
Guest Sumedh Report post Posted September 18, 2012 Hi, To track the legend click event, FusionCharts XT Service Release 4 has introduced advanced event known as "LegendItemClicked". This is currently not documented but would work for both Flash Chart and JavaScript Chart Ref. Code: function myChartListener(eventObject, argumentsObject) { alert( "Legend clicked" ); } FusionCharts("ChartId").addEventListener ("LegendItemClicked" , myChartListener ); For other events, please refer the following URL: http://docs.fusioncharts.com/charts/contents/?JavaScript/API/Events.html Hope this helps! Share this post Link to post Share on other sites
Nandhu Report post Posted May 20, 2016 Hi, I have created a Multi series(2 bars) chart. By default, when the chart is loaded i want to display only one bar. And when i click the legend of the bar that is hidden, i want to show both the bars. Kindly help me. Thanks Nandhu Share this post Link to post Share on other sites
Gagan Sikri Report post Posted May 30, 2016 Hi You do not need `legendItemClick` event for this purpose. You can directly specify attribute `initiallyHidden` in data series you don't want to show when chart is rendered. Chart will render only with data series that are enabled and on legend click for disabled items, they will also appear. Please refer to this JSFiddle sample for the same: http://jsfiddle.net/fusioncharts/mEHs3/ Share this post Link to post Share on other sites