Home forums Using CanvasJS Y Axis Value customization

This topic contains 3 replies, has 2 voices, and was last updated by  Priyanka M S 2 months, 2 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #20894

    sajeeshe
    Member

    Hi,
    I need one help for Y Axis customization , here the link http://jsfiddle.net/sajeeshen/ry22b58p/3/ . Now see this one http://jsfiddle.net/sajeeshen/ry22b58p/4/ . You will see I have one set

    { x: 55, y: 0,budget: 30, warnings :15 , label: ”, y1: 60},
    { x: 65, y: 500000 ,budget: 30, warnings :15, label: ‘Mar’, y1: 60},
    { x: 70, y: 250000 ,budget: 30, warnings :15, label: ”, y1: 60},
    { x: 75, y: 0 ,budget: 30, warnings :15, label: ”, y1: 60},

    if you look at this, the other charts are not showing. Please help me to fix this issue.

    Also if you look at the other link, you will see the blue part and the yellow part. For the higher value that is also not showing

    • This topic was modified 2 months, 2 weeks ago by  sajeeshe.
    #20917

    Priyanka M S
    Member

    @sajeeshe,

    Please take a look at these fiddles.
    1.Fiddle1
    2.Fiddle2

    if you look at this, the other charts are not showing. Please help me to fix this issue.

    The values of other dataPoints are very less as compared to the maximum y value in dps array. Hence, the other dataPoints will stick to the axis.

    Also if you look at the other link, you will see the blue part and the yellow part. For the higher value that is also not showing

    The blue, yellow parts(stacked charts) are not been shown up as their threshold values are very less as compared to the maximum y value of the dps array.
    You can set the threshold value for the blue, yellow and red stacked charts based on your requirement. Please check calculateThreshold() in provided fiddles to set the threshold value for the stacked charts.

    __
    Priyanka M S
    Team CanvasJS

    #20932

    sajeeshe
    Member

    Doesn’t make any sense. You are making another one Y point is closer to the larger value. If you change 150000 to 5000 it wont show. https://jsfiddle.net/092wwvxL/2/ . Let say I have these values

    x: 5, y: 10
    x: 10, y:500,
    x: 15: y:500000,
    x: 20: y: 2

    Then in Y axis you will see the wrong values.

    #20940

    Priyanka M S
    Member

    @sajeeshe,

    Please take a look at this jsfiddle.

    If this doesn’t solve your requirement, please brief further about your exact requirement along with pictorial representation, so that we can understand it better and help you out.

    __
    Priyanka M S
    Team CanvasJS

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

You must be logged in to reply to this topic.