reward72
reward72

Reputation: 11

Show tooltip and keep it visible

Whenever the user "mouse out" my chart, I would like a tooltip to automatically appear above one point and stay visible until the mouse returns above the chart.

series: {
  events: {
    mouseOut: function() {
      chart.series[0].data.refresh(0);
  }
}

The code above works, but the tooltip disappear after a second or two. I want it to stay visible.
Thanks!

Upvotes: 0

Views: 593

Answers (1)

Sebastian Wędzel
Sebastian Wędzel

Reputation: 11633

This reassigning of the reset function should help to achieve wanted result.

Demo: https://jsfiddle.net/BlackLabel/pu9g2dft/

  Highcharts.Pointer.prototype.reset = function() {
    return undefined;
  };

Upvotes: 1

Related Questions