仅在图例和悬停上标记Highcharts标记 [英] Highcharts markers on legend and hover ONLY

查看:443
本文介绍了仅在图例和悬停上标记Highcharts标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只需要在悬停状态和图例中始终显示高图标记。我不希望它在图表中显示正常状态。我搜索了这个,发现这个帖子不适合我

系列标记禁用线条并在图表中启用图例

解决方案

您可以重置drawPoints函数。

  Highcharts.Series.prototype.drawPoints = function() {}; 

示例: http://jsfiddle.net/11pLzk9m/1/


I need to show highchart markers only on hover state and in the legend at all times. I don't want it to show on normal state in the chart. I searched for this and found this post which did not work for me

Series markers disable on lines and enable on legend in Highchart

解决方案

You can reset drawPoints function.

Highcharts.Series.prototype.drawPoints = function() { };

Example: http://jsfiddle.net/11pLzk9m/1/

这篇关于仅在图例和悬停上标记Highcharts标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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