Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why are the labels for my opposite yaxis in Highcharts not showing up?

I am puzzled why the second yaxis in my Highcharts graph shows, but without any values. Both of my two graphs are still bound to the first yaxis. Can't get one of them attributed to the second yaxis. Here is a fiddle.

Thanks for any hints!

like image 718
luftikus143 Avatar asked Mar 26 '13 10:03

luftikus143


1 Answers

The charts options are case sensitive. You specified 'yaxis' when it should be 'yAxis'. That took me a while to spot !

series: [{
        yAxis: 1,
        data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]        
    },{
        yAxis: 0,
        data: [19.9, 21.5, 6.4, 29.2, 44.0, 76.0, 35.6, 48.5, 16.4, 94.1, 95.6, 54.4]        
    }]
like image 126
SteveP Avatar answered Sep 28 '22 04:09

SteveP