Home › forums › Using CanvasJS › Vertical lines with legend
I want a long graph that is likely to be zoomed in on, such as those in the zooming examples. However, at various points along the X axis I will want vertical lines with an annotation/label on each.
Firstly, how could this be done?
Secondly, when I zoom in, I presume the label is likely to disappear – since the y values of the line graph will be within a smaller range, it will automatically zoom in on the y axis as well, so cropping the label?
Are you looking for stripLines with label? If you want the interval not to change while zooming you can set interval yourself.
For the second case can you please create a jsfiddle and an image depicting the issue. So, that we can look into it and help you out.
You must be logged in to reply to this topic.