加载图表时显示HighCharts工具提示 [英] Show HighCharts tooltip when chart loads
本文介绍了加载图表时显示HighCharts工具提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
chart.tooltip.hide = function(){};
解决方案
刷新工具提示时,显示加载时的工具提示
chart.tooltip.refresh(chart.series [1] .points [2]);
//如果tooltip.shared = true,则该参数是点数组
chart.tooltip.refresh([chart.series [1] .points [2]]);
阅读更多@ 自定义Highcharts - 工具提示可见性
I am sing Highcharts to show years against premium amount of loan. I am showing a crosshair and tooltip when user hovers on chart area. However, I want to show this when the chart loads initially (without / before moving mouse). Is there any way to do this? to make the tooltip sticky, I used below code and it works (except IE8). Simillarly, looking for displaying it on load.
chart.tooltip.hide = function () { };
解决方案
Refresh the tooltip with the point at which you wish to show the tooltip at load
chart.tooltip.refresh(chart.series[1].points[2]);
// If the tooltip.shared=true, the parameter is array of points
chart.tooltip.refresh([chart.series[1].points[2]]);
Show Tooltip on Load @ jsFiddle
Read More @ Customizing Highcharts - Tooltip Visibility
这篇关于加载图表时显示HighCharts工具提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文