Home forums Chart Support Both axisY amd axisY2 in same chart


Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #27910

    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
    title: “Temperature”,
    suffix: “°”
    axisY2: {
    title: “Humidity”,
    suffix: “%”

    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.

    Manoj Mohan
    Team CanvasJS

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

You must be logged in to reply to this topic.