Javascript examples for highcharts:Bar Chart
multilevel categories in 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 () {//from w w w . j a v a 2 s . com $('#container').highcharts({ chart: { type: 'bar' }, title: { text: 'Stacked bar chart' }, xAxis: { categories: ['Gold', 'Silver', 'Bronze'] }, yAxis: { min: 0, title: { text: 'Total fruit consumption' } }, legend: { backgroundColor: '#FFFFFF', reversed: true }, plotOptions: { series: { stacking: 'normal' } }, series: [{ name: 'Male', data: [5, 3, 4 ] }, { name: 'Female', data: [2, 2, 3] },] }); }); </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>