Home Forums Feature Requests & Feedback Interval of Y-Axis

Interval of Y-Axis

Viewing 2 posts - 1 through 2 (of 2 total)
  • #19203

    Hi veerybody,
    I’m using the following properties to style the y-axis of a line chart:

    axisX: { minimum: 26, maximum: 46, interval 4 }

    I expected, that the grid-lines therefore will be rendered with the values 26 (as defined by the minimum property of the axisY), 30, 34, 38, 42 and finally 46 (as defined by the maximum property).
    But the behaivour of the chart is different. The first grid-line starts above the bottom line of the chart at a value of 28.
    Then the next grid-lines will be rendered with the following values: 32, 36, 40, 44.
    So it seems, that the gridlines are only shown for values that are devidable through the interval value itself.
    But that’s not what I expected it to be. Is there any way to change the behaviour so that the minimum value represents the first gridline and that the maximum value represents the last gridline?

    #19209

    Tobi,

    Gridlines / Ticks will appear only at y-values that are integral multiples of the interval, irrespective of the minimum and maximum set.


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.