Wednesday, 15 February 2012

highcharts - Different axis per category -


I have two different categories:

  1. Mae Arripe (rental price)
  2. Coffee (purchase price)

The rental price is much less than the purchase price (rental price is barely visible), so I want to use two axes. I do not know the different scales, how to use different axes to use different axes. Use only the axis for a single serie to say which I got the code, but not for a single category:

  {type: 'column', data: [194.1, 176.0, 135.6, 148.5, 216.4], name: 'rain', yAxis: 1}   

You can not do - the specific axis can only be set for the series, for example you can split your data into different datasets: (Now to match the colors, only the series crawl R).

  series: [{name: 'MarkSpain1', data: [[0, 3.5.4]]}, {yAxis: 1, name: 'MarkSpain1', data : [[1, 100,150]]}, {name: 'ampehung', data: [[0, 4,5]]}, {YAxis: 1, name: 'amphhehung', data: [[1, 150,300]] }, {Name: 'Marxpen2', data: [[0, 5,6]]}, {yAxis: 1, name: 'Marketspan2', data: [[1, 300320]]}]  

No comments:

Post a Comment