Javascript examples for highcharts:Column Chart
Column chart with a group of data
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.js"></script> <script type="text/javascript"> $(function () {/*from w w w . j av a 2 s. c om*/ $('#container').highcharts({ chart: { zoomType: 'x', type: 'column' }, title: { text: 'Monthly Average Rainfall' }, subtitle: { text: 'Source: WorldClimate.com' }, xAxis: { type: 'datetime', maxZoom: 60 * 24 * 3600000, // thirty days }, yAxis: { min: 0, title: { text: 'Rainfall (mm)' } }, tooltip: { headerFormat: '<span style="font-size:10px">{point.key}</span><table>', pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' + '<td style="padding:0"><b>{point.y:.1f} mm</b></td></tr>', footerFormat: '</table>', shared: true, useHTML: true }, plotOptions: { column: { pointRange: 7 * 24 * 3600 * 1000, pointPadding: 0.2, borderWidth: 0 } }, series: [{ name: 'Tokyo', data: [[Date.UTC(2013, 0, 6), 49.9]/*, [Date.UTC(2013, 1, 6), 71.5]*/ ] }, { name: 'New York', data: [[Date.UTC(2013, 0, 6), 83.6]/*, [Date.UTC(2013, 1, 6), 78.8]*/ ] }, { name: 'London', data: [[Date.UTC(2013, 0, 6), 48.9]/*, [Date.UTC(2013, 1, 6), 38.8]*/ ] }, { name: 'Berlin', data: [[Date.UTC(2013, 0, 6), 42.4]/*, [Date.UTC(2013, 1, 6), 33.2]*/ ] }] }); }); </script> </head> <body> <script src="https://code.highcharts.com/highcharts.js"></script> <script src="https://code.highcharts.com/modules/exporting.js"></script> <div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div> </body> </html>