Javascript examples for highcharts:Column Chart
column fit/adjust on chart
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script type="text/javascript"> $(function(){//w w w.j a v a 2 s. c o m var data = { "data": [ [1400025600000, 0], [1401580800000, 2] ] }; chart = new Highcharts.Chart({ chart: { renderTo: 'divStatsGrupo', }, xAxis: { type: 'datetime' }, series: [{ type: 'column', data: data.data }] }); }); </script> </head> <body> <script src="https://code.highcharts.com/highcharts.js"></script> <script src="https://code.highcharts.com/modules/exporting.js"></script> <div id="divStatsGrupo" style="width: 400px; height: 300px; margin: 0 auto"></div> </body> </html>