Javascript examples for highcharts:Chart Data
Test various chart type for the same data
<html> <head> <title>basic example</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-1.6.1.js"></script> <script type="text/javascript"> $(function(){//from w ww . jav a 2 s . 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: { threshold: 0.5, negativeColor:'#c00' } }, xAxis: { }, yAxis: { //allowDecimals:false }, series:[{ data:[.2,.3,-.5,.8,.15,.12,.7,.4] }] }); }); </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>