The default functionality in ZingChart for legends while clicking the item is to hide all the respective bar series that is related to that item value in legend.
I am performing a drilldown operation, which is fetching data for graph from server while clicking the legend item and then plotting a new chart with it. Now I dont want those bars to disappear while clicking the legend item and at the sametime want to perform onclick event when selecting the legend.
When I add : "toggle-action":"disabled"
inside the legends , the disappearence of the bars does not happen so does the onclick event.
Following is the legend item click function that I have written:
zingchart.bind("hbarChart", "legend_item_click", function (p) {
var data= p.xdata.band[0];
getData(data);
});