Home Forums Chart Support Draw same line at axixY and axixY2.

Draw same line at axixY and axixY2.

Viewing 5 posts - 1 through 5 (of 5 total)
  • #20625

    Hi.
    I want an answer.

    Please look at this sample.JSFiddle

    If the data does not refer to the Y2 axis, the line is not rendered.
    Therefore, first changed to “data: [axisYType:” secondary “]”.

    When executed in the area chart, only the rightmost line was displayed above the area chart.JSFiddle

    How can I make the Y1 axis and the Y2 axis the same display?

    #20626

    @kinokatsu,

    You can attach an empty dataSeries to axisY2 and set minimum and maximum to that of axisY using set method. Please take a look at this updated jsfiddle.


    Vishwas R
    Team CanvasJS

    #20627

    Vishwas,

    thanks for your reply.

    wonderfull!

    Later, I found a way of dummy data.
    display legent without data

    Further …

    Please look at the image below.
    I want to draw the same line.
    sample picture

    I want a suggestion.

    #20628

    @kinokatsu,

    Do you mean showing axisY line? If so, varying axisX minimum slightly will make it visible. axisY line is not visible due to minimum set in axisX. Please take a look at this updated jsfiddle.


    Vishwas R
    Team CanvasJS

    #20643

    Vishwas,

    thanks for your reply.

    Oh! That’s good idea.

    I would like to adopt a method of adjusting the starting point of the area chart, not the scale adjustment.

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

You must be logged in to reply to this topic.