Reputation: 23554
I'm trying to setup in Highcharts the ability to show show the current yaxis value and have it highlighted.
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.
Any suggestions on how to achieve this?
Thank you!
Upvotes: 0
Views: 429
Reputation: 45079
You have two options:
plotLines
to add one with value of last point. Of course when new point is added, remove previous plotLine
and add new one with new value.There is of course another solution - use renderer to render line with label, but it's more complicated ;)
Upvotes: 1