Home forums Using CanvasJS Stacked area click Reply To: Stacked area click

#14913

ToasterSch
Member

hi,

@Suyash

I found a solution in suing the contentformatter:

toolTip: {contentFormatter: onCanvasClick}

function onCanvasClick(e) {
document.getElementById(“eventYValue”).innerHTML = e.entries[0].dataSeries.name;
};
so i get the dataseries Name and can make my selection for the drilldrown

chartContainer.addEventListener(‘click’, onDataSeriesClick); // and here im catching the click

BR
ToasterSch