本文介绍了在StockChart(高图)中以编程方式显示柱形图的工具提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个 Highstock 图表(带有标记和阴影的线条),并且想要以编程方式显示highstock工具提示,例如,当我选择某个表格上的一行时数据),我想显示相应的highstock工具提示。
是否有可能?
解决方案
对于StockChart doesn' t work:
在中,您有以取代此:
chart.tooltip.refresh(chart.series [0] .data [i]); b
chart.tooltip.refresh([chart.series [0] .points [I]]);
解决方案可用。
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?
解决方案
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.
这篇关于在StockChart(高图)中以编程方式显示柱形图的工具提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!