0

Demonstration image For the stockchart, I'm calculating the rainfall data. For that my max, min, avg is fixed but the Rainfall data changes in hover of the graph by tooltip. I want all other information to be static and always shown and the rainfall being updated on hover over the graph.

Currently I'm mapping it to this.points.map(function(point) but it all the information shows only on hover.

4

1 回答 1

0

为了使工具提示在您的情况下始终可见,请覆盖:

  • hideTooltip.prototype
  • hideCrosshairAxis.prototype

Highcharts.Tooltip.prototype.hide = function() {};
Highcharts.Axis.prototype.hideCrosshair = function() {};

现场演示:http: //jsfiddle.net/BlackLabel/kfpLyvo4/

文档: https ://www.highcharts.com/docs/extending-highcharts

于 2019-06-17T10:49:49.027 回答