Home Forums Report Bugs Stacked Area Y-Axis Max Not Correct

Stacked Area Y-Axis Max Not Correct

Viewing 3 posts - 1 through 3 (of 3 total)
  • #20943

    Given a stacked area graph with 5 series, leaving the y-axis maximum as default (automatic) does not sum up the max Y values, only uses the largest one.

    If I have 5 series with value each (1,2,3,4,5), the y-axis max is 6, however, the actual max should be at least 15.

    #20944

    Here is a fiddle to reproduce
    https://jsfiddle.net/tLjx4x1b/1/

    #20952

    Paul,

    Its not a bug but its due to invalid x-value that has been passed to chart. moment().startOf('d') is not a valid JavaScript date-time object, however moment().startOf('d')._d is valid date-time object. Passing valid date-time object should work fine in your case. Please take a a look at this updated jsfiddle.


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.