Javascript examples for highcharts:Bar Chart
space usage for bar chart
<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 () {// w w w. j av a 2 s. c o m $('#container').highcharts({ chart: { type: 'bar' }, xAxis: { categories: ['Africa', 'America', 'Asia', 'Europe', 'Oceania'], title: { text: null } }, yAxis: { min: 0, maxPadding:0, endOnTick:true, title: { text: 'Population (millions)', align: 'high' }, labels: { overflow: 'justify', formatter: function() { return (this.value * 100) + ' %' } } }, series: [{ data: [0.5,0.6,0.8] }] }); }); </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: 400px; height: 400px; margin: 0 auto"></div> </body> </html>