Home Forums Chart Support Tooltip not showing Reply To: Tooltip not showing


Ragu Nathan,

You can set toolTipContent to null in dataseries level to hide tooltip for particular dataseries when shared is set to false. Please take a look at this JSFiddle for an example.

However, the same can be done using contentFormatter as well. In this case, you will have to loop through all the entries & generate tooltip content to hide information related to one of the dataseries. Please find the code-snippet below.

contentFormatter: (e) => {
  var content = "";
  for(var i = 0; i < e.entries.length; i++) {
    if (e.entries[i].dataSeries.name != "Visits") {
      content += e.entries[i].dataSeries.name + " - " +  e.entries[0].dataPoint.y;
  return content === "" ? null : content;  

Please take a look at this updated JSFiddle for complete code.

Formatting Tooltip Content

Vishwas R
Team CanvasJS