MENU
.net Powerful JavaScript charts

How do I add a reference line to my chart?


Posted by Pedro at 20:32 on Friday 25th April 2025 [link]
Tem como criar uma linha de referXXncia ligando ponto x e y em um grXXfico de linhas?

Translation:

Is it possible to create a reference line connecting points x and y in a line graph?
Attached image:
Attached image

Posted by Richard at 13:25 on Saturday 26th April 2025 [link]
Hi,

I was all ready to point you to the horizontalLines property and then at the last moment saw your image that has a vertical line in it!

There's no vertical line property for the Line chart - perhaps I should add one - but adding a vertical line is quite easy. I've made a CodePen example for you on how to do it and that's at the link here:

https://codepen.io/rgraph/pen/oggegYa

[Replies are closed]