2014-01-23 139 views
0

我试图让tickPositions在2 y轴上的图上工作。Highchart的多轴y位置

的问题是,对于第二y轴的tickPosition熄灭:

http://jsfiddle.net/gn393/12/

yAxis: [{ 
    height: 420, 
    lineWidth: 2, 
}, { 
    top: 500, 
    height: 210, 
    lineWidth: 2, 
},{ 
    opposite:true, 
    linkedTo:0, 
    tickPositions:[26.79] , 
    gridLineWidth:0 
},{ 
    opposite:true, 
    linkedTo:0, 
    tickPositions:[34.87] , 
    gridLineWidth:0 
},{ 
    opposite:true, 
    linkedTo:1, 
    tickPositions:[-8.09], 
    gridLineWidth:0 
}], 

我在做什么错?

回答

1

你没有机顶盒和高度为去年Y轴,看固定例如:http://jsfiddle.net/gn393/14/

   yAxis: [{ 
        height: 420, 
        lineWidth: 2, 
       }, { 
        top: 500, 
        height: 210, 
        lineWidth: 2, 
       },{ 
        opposite:true, 
        linkedTo:0, 
        tickPositions:[26.79] , 
        gridLineWidth:0 
       },{ 
        opposite:true, 
        linkedTo:0, 
        tickPositions:[34.87] , 
        gridLineWidth:0 
       },{ 
        top: 500, // here 
        height: 210, // here 
        opposite:true, 
        linkedTo:1, 
        tickPositions:[-8.09], 
        gridLineWidth:0 
       }]