简体   繁体   English

Highcharts yaxis价格线

[英]Highcharts yaxis price line

I'm trying to setup in Highcharts the ability to show show the current yaxis value and have it highlighted. 我试图在Highcharts中设置显示当前yaxis值并将其突出显示的功能。

Below is an example, in this charts which is Highcharts, you'll see the horizontal black line with the current value selected with the black label. 下面是一个示例,在此图表为Highcharts的情况下,您将看到水平的黑线以及带有黑色标签的当前值。

Any suggestions on how to achieve this? 关于如何实现这一目标的任何建议?

Thank you! 谢谢!

例

You have two options: 您有两种选择:

There is of course another solution - use renderer to render line with label, but it's more complicated ;) 当然,还有另一种解决方案-使用渲染器渲染带有标签的行,但是更复杂;)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM