2

I'm working on a stockchart and i would like to show the highstock tooltip programmatically as asked here.

I managed to solve this problem but now, my goal is to show the tooltip for all series (the same behavior when i select a point with the mouse - please check this example).

Is that possible?

Here the key code (more code):

xchart.tooltip.refresh([xchart.series[0].points[i]]);
//DOESN'T WORK
//chart.tooltip.refresh([chart.series.points[i]]);
//DOESN'T WORK ALSO
//chart.tooltip.refresh([chart.series[0].points[i]]);
//chart.tooltip.refresh([chart.series[1].points[i]]);
4

1 回答 1

5

Just enable sharing for tooltip. And refresh both series's tooltip by giving the points of array that you want to show on the tooltip.

tooltip : {
          valueDecimals : 2,
          shared: true
}

xchart.tooltip.refresh([xchart.series[0].points[i], xchart.series[1].points[i]]);

http://jsfiddle.net/cf7wq/5/

And seems like showing two different tooltips without sharing is not possible through only api itself.

http://highslide.com/forum/viewtopic.php?f=9&t=12670

于 2013-02-04T13:12:31.300 回答