Home Forums Chart Support stripLines out of the graph, not shown

stripLines out of the graph, not shown

Viewing 4 posts - 1 through 4 (of 4 total)
  • #29495

    Hi,

    Problem of the day, I have a simple stripLine on the Y axis and would like it to be displayed on the graph no matter what values are the other datasets. Right now, it is “above” the graph.
    There should be such an option to take into consideration the stripline when calculating the draw area…

    Actual behavior: add a stripLine with a value higher than the Y maximum, by default it won’t show up. Example: https://jsfiddle.net/Lb92t5vh/ (just change it’s value for 40 or under and it will show obviously)
    Expected behavior: the graph Y axis would scale up and allow the stripLine to be visible.

    Thanks

    • This topic was modified 4 years, 6 months ago by xavcactus. Reason: added details for the splitline values
    #29503

    @xavcactus,

    Y-Axis range depends on the range of y-values passed (from dataPoints array) and not on stripLine values. However, you can manually set the range of axisY by setting its minimum and maximum. Please take a look at this updated JSFiddle for the same.


    Shashi Ranjan
    Team CanvasJS

    #29508

    hi @shashiranjan,
    Thanks for your answer,

    I’m aware of the axis minimum/maximum options, though, why not have an option to fit all data in the chart view (if not by default)?

    Thanks

    #29557

    @xavcactus,

    Thanks for your suggestion. We will reconsider this behavior in future releases.


    Shashi Ranjan
    Team CanvasJS

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

You must be logged in to reply to this topic.