Javascript examples for highcharts:Stock Chart
make a multi pane on stock charts which contain a stacked area graph?
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script type="text/javascript"> $(function () {//from w w w. j ava2s . c o m $.getJSON('https://www.highcharts.com/samples/data/jsonp.php?filename=aapl-ohlcv.json&callback=?', function (data) { var series = [{ name: 'Asia', data: [ [1364292000000, 502], [1364294000000, 635], [1364296000000, 809], [1364298000000, 947], [1364300000000, 1402], [1364302000000, 3634], [1364304000000, 5268] ] }, { name: 'Africa', data: [ [1364292000000, 106], [1364294000000, 107], [1364296000000, 111], [1364298000000, 133], [1364300000000, 221], [1364302000000, 767], [1364304000000, 1766] ] }, { name: 'Europe', data: [ [1364292000000, 163], [1364294000000, 203], [1364296000000, 276], [1364298000000, 408], [1364300000000, 547], [1364302000000, 729], [1364304000000, 628] ] }]; var line_data = { type:'line', yAxis:1, data:[ [1364292000000, 502], [1364294000000, 635], [1364296000000, 809], [1364298000000, 947], [1364300000000, 1402], [1364302000000, 3634], [1364304000000, 5268] ]}; series.push(line_data); // create the chart $('#container').highcharts('StockChart', { chart: { type: 'area', renderTo: 'container', zoomType: 'x' }, plotOptions: { area: { stacking: 'normal' } }, rangeSelector: { selected: 1 }, title: { text: 'AAPL Historical' }, yAxis: [{ title: { text: 'Load' }, height: 200, lineWidth: 2 }, { title: { text: 'Load 2' }, top: 300, height: 100, offset: 0, lineWidth: 2 }], series: series }); }); }); </script> </head> <body> <script src="https://code.highcharts.com/stock/highstock.js"></script> <script src="https://code.highcharts.com/stock/modules/exporting.js"></script> <div id="container" style="height: 500px; min-width: 500px"></div> </body> </html>