djoshi
Posts: 61
Joined: Fri Mar 26, 2021 5:16 pm

Limit Indications on the graph

Hi All

I am very new to highcharts stock

I am using the angular ionic based plugin.

Is it possible to show on a graph when the day goes beyond a certain limit?

I have sensor data, that when it goes above 60%, I would like some indication on the graph. Maybe a simple safety line?

The aim is to give the user an indication that the reading are beyond the safe limits.

Thank You

DJ
pawelys
Posts: 962
Joined: Wed Sep 02, 2020 10:37 am

Re: Limit Indications on the graph

Hello, welcome to the official highcharts forum, and thanks for contacting us with your question!
I don't really understand what you mean, by limit, and what you mean by 60%. If you want to draw the line on the chart, you can use the Axis.plotLine, which allows you to draw any vertical/horizontal line corresponding to the value on the given axis. Here Is the demo: https://jsfiddle.net/BlackLabel/rwsanLf3/

Also, check our API reference for more interesting options: https://api.highcharts.com/highcharts/xAxis.plotLines

In case of any further questions feel free to contact us again! Kind regards,
Paweł Lysy
Highcharts Developer

Return to “Highcharts Stock”