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

This topic contains 2 replies, has 2 voices, and was last updated by  Vishwas R 6 months, 2 weeks ago.

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

    Paul
    Member

    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

    Paul
    Member

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

    #20952

    Vishwas R
    Keymaster

    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.