Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show tooltip of a column chart programmatically in StockChart (highchart)

I've a Highstock chart (Line with markers and shadow) and would like to show a highstock tooltip programmatically, i.e. when i select, for example, a row on some table (that contains chart data) i would like to show the corresponding highstock tooltip.

Is that possible?

like image 342
JMarques Avatar asked Feb 01 '13 11:02

JMarques


1 Answers

For StockChart this solution doesn't work:

In this example you have to replace this:

chart.tooltip.refresh(chart.series[0].data[i]);

to this:

chart.tooltip.refresh([chart.series[0].points[i]]);

The solution is available here.

like image 120
JMarques Avatar answered Sep 21 '22 00:09

JMarques