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 4 months, 1 week ago.
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?
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.
thanks for your reply.
Later, I found a way of dummy data.
display legent without data
Please look at the image below.
I want to draw the same line.
I want a suggestion.
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.
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.
You must be logged in to reply to this topic.