Highcharts - 手动触发点上的悬停事件 [英] Highcharts - manually trigger hover event on a point

查看:1713
本文介绍了Highcharts - 手动触发点上的悬停事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您将鼠标悬停在一张Highcharts图表的某个点上时,您会在光标(或其他符号)下面看到一个很好的放大圆圈。我想要手动触发该悬停效果。

我知道我可以在该点上手动触发mouseOver事件,但是这并不能为我所用的图表上的放大符号。

解决方案

我通过查看源代码找到答案 - 调用setState('hover');关于你想突出显示的点。

When you hover over a point in a Highcharts chart, you get a nice enlarged circle under you cursor (or other symbol). What I would like to do manually trigger that hover effect.

I know that I can manually trigger the mouseOver event on the point, but that doesn't give me the enlarged symbol on the chart that I am going for.

解决方案

I found the answer by looking at the source - call "setState('hover');" on the point that you want to be highlighted.

这篇关于Highcharts - 手动触发点上的悬停事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆