javascript - Highstock, multiple series chart, independent xAxis -
following chart have, want add xaxis both charts depending on data inputs,
where should make change or add xaxis can define min max limits xaxis.
here fiddle: http://jsfiddle.net/pratik24/n24s2fyk/3/
code:
$(function () { $('#container').highcharts('stockchart', { navigator:{ enabled: false }, scrollbar:{ enabled: false }, rangeselector : { selected : 1, enabled:false }, yaxis: [{ min: -1e6, max: 1e6, labels: { align: 'left', format : '' }, title: { text: 'ohlc' }, height: '30%' }, { min: -1e6, max: 1e6, labels: { align: 'left', x: -3, format : '' }, title: { text: 'volume' }, top: '65%', height: '35%', offset: 0 }], series: [{ inverted: true, type: 'scatter', name: 'aapl', data: [7.0, 6.9, 9.5, 14.5, 18.4], yaxis: 0 }, { inverted: true, type: 'scatter', name: 'volume', data: [3,6,8,5,2], yaxis: 1 }] }); });
thanks in advance,
here solution:
[http://jsfiddle.net/pratik24/uga37ox0/2/][1] [http://jsfiddle.net/uga37ox0/1/][1]
thanks guys highcharts suppot team
xaxis: [{ },{ offset: -245, min: 0, max: 10 }], series: [{ inverted: true, type: 'scatter', name: 'aapl', data: [7.0, 6.9, 9.5, 14.5, 18.4], yaxis: 0, xaxis: 1 }, { inverted: true, type: 'scatter', name: 'volume', data: [3,6,8,5,2], yaxis: 1, xaxis:0 }]
Comments
Post a Comment