Javascript examples for highcharts:Line Chart
Plotting time series with different scales with line chart
<html> <head> <title>2 y axis demo</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-2.0.2.js"></script> <script type="text/javascript"> $(function(){/*from w ww . ja va 2s . c om*/ var chart = new Highcharts.Chart({ chart: { renderTo:'container', //type:'column' //type:'bar' //type:'area' //type:'scatter' //type:'bubble' }, credits: {}, exporting: {}, legend: {}, title: {}, tooltip: {}, plotOptions: { series: { } }, xAxis: { }, yAxis: [{ min:0 },{ opposite:true }], series:[{ yAxis:0, data:[2,3,5,8,15,12,7,4] },{ yAxis:1, data: [700,200,600,900,300,100,700,800] }] }); }); </script> </head> <body> <script src="https://code.highcharts.com/highcharts.js"></script> <script src="https://code.highcharts.com/highcharts-more.js"></script> <script src="https://code.highcharts.com/modules/exporting.js"></script> <div id="container" style="height:400px;margin:1.5em 1em;"></div> </body> </html>