Home › forums › Using CanvasJS › Both axisY amd axisY2 in same chart
Tagged: axisY axisY2
I would like a cahrt with multiple lines. The Y axis to show the title and units for one line (values between 0 and 15) and the axisY2 to show title and units for the other line (values between 0 and 80).
Here is the code
But the chart I end up with has a single axisY on the left hand side, of temperature with a range of between 0 and 80. No right hand Y axis.
Can I do this with canvas and if so how?
AxisYType option needs to be added to the appropriate set of data.
You can use secondary axisY to achieve your requirement.
You must be logged in to reply to this topic.