Sang
Posts: 10
Joined: Wed Jul 14, 2021 4:09 am

I'd like to add dynamic annotation

Hi.

I'm working on a real-time chart now.

I'm using highchart stock.

Which option should I add?

please. help me..
Attachments
chart.PNG
chart.PNG (65.66 KiB) Viewed 1075 times
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: I'd like to add dynamic annotation

Hello Sang,

Thanks for contacting us with your question.

You could use annotation to achieve something like this, but looking at your attached image I think that you might want to try yAxis.crosshair property with a label. It looks almost exactly the same. Here's a demo: https://jsfiddle.net/BlackLabel/sc9m1Lt2/
Api reference: https://api.highcharts.com/highstock/yAxis.crosshair

However, if you still want to use annotatoins, I need more more detailed description of what you want to achieve. Tell me what do you mean by dynamic annotation? When you want the annotation to appear? Should it be fixed and attached to single point?
Here you can find some general information about how to use annotations: https://www.highcharts.com/docs/advance ... ons-module
API reference: https://api.highcharts.com/highstock/annotations

Let me know if you have any further questions!
Best regards!
Mateusz Bernacik
Highcharts Developer

Return to “Highcharts Stock”