onLegendClick

fires on clicking a legend item

void onLegendClick(object ev,string seriesIndex,object node){ ... };

Parameters

evobjecta native click event object
seriesIndexstringid of the legend item (series index)
nodeobjectan html element

Example

myChart.attachEvent("onLegendClick",function(ev, seriesIndex, node){
     // your code
});

Back to top