Home forums Using CanvasJS Vertical lines with legend

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Sanjoy 4 months, 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11623

    jodes
    Member

    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?

    #11624

    Sanjoy
    Moderator

    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.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.