Home Forums Chart Support Hiding tooltip when mouse out of the point Reply To: Hiding tooltip when mouse out of the point

#37625

@sparikh,

You can set the mouseover and mouseout event handlers and create a custom function using the tooltip updated function to achieve the same behavior with a line chart. Please find the code snippet for the same below.

toolTip: {
  updated: function(e) {
    if(!showToolTip)
      e.chart.toolTip.hide();
  }
}

Please check this updated JSFiddle for a working example.

Hiding tooltip on mouseout


Thangaraj Raman
Team CanvasJS