score:1

Accepted answer

i have corrected the problem with your code: demo

you will have to pass series data for each y-axis individually:

series: [{
            name: 'rainfall',
            type: 'column',
            yaxis: 1,
            data: [49.9, 71.5],
            tooltip: {
                valuesuffix: ' mm'
            }

        }, {
            name: 'temperature',
            type: 'column',
            data: [7.0, 6.9],
            tooltip: {
                valuesuffix: ' °c'
            }
        }]

score:1

well, i think you need to fix your series object. how about this:

series : [{
        data : [{
                name : 'roads',

                y : 200
            }, {
                name : 'powerlines',
                color : '#ff00ff',
                y : 50
            }
        ]
    },
    {
        yaxis : 1,
        data : [{
                name : 'roads',

                y : 30
            }, {
                name : 'powerlines',
                color : '#ff00ff',
                y : 10
            }
        ]
    }
]

also you need to add yaxis : 1 as an id to axis (you can explicitly set the id of an axis to make sure)


Related Query