Home forums Using CanvasJS Draw same line at axixY and axixY2.

This topic contains 4 replies, has 2 voices, and was last updated by  kinokatsu 2 months, 2 weeks ago.

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

    kinokatsu
    Member

    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

    Vishwas R
    Keymaster

    @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

    kinokatsu
    Member

    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

    Vishwas R
    Keymaster

    @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

    kinokatsu
    Member

    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.