Home forums Using CanvasJS Is it possible to display the toolTips for every point at once? Reply To: Is it possible to display the toolTips for every point at once?

#22369

kevin.jhang
Member

toolTip: {
shared: true,
contentFormatter: function (e) {
let a = “”;
for (let b of e.chart.options.data)
{
for (let c of b.dataPoints) {
a += b.name + “>” + c.x + “:” + c.y + “<br/>”;
}
}
return a;
}
}