Check documentation for the latest version of dhtmlxSuite onLegendClick DHTMLX Docs

onLegendClick

fires on clicking a legend item

void onLegendClick(object ev,string seriesIndex,object node);
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