Javascript examples for highcharts:Bar Chart
Labels outside Series 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"> $(window).load(function(){//from w w w.j a v a2 s . co m $(function () { $('#container').highcharts({ chart: { type: 'bar', backgroundColor: null, width: 360 }, title: { text: null, style: { display: 'none' } }, subtitle: { text: null, style: { display: 'none' } }, credits: { enabled: false }, exporting: { enabled: false }, xAxis: { categories: ['Cat 1', 'Cat 2', 'Cat 3', 'Cat 4', 'Cat 5', 'Cat 6', 'Cat 7', 'Cat 8', 'Cat 9', 'Cat 10'], title: { text: null } }, yAxis: { min: 0, max: 10, gridLineWidth: 0, minorGridLineWidth: 0, title: { text: null }, labels: { enabled: false } }, tooltip: { enabled: false }, plotOptions: { bar: { dataLabels: { enabled: true } }, series: { dataLabels: { crop: false, enabled: true, overflow: 'none' } } }, series: [{ showInLegend: false, name: '', color: '#CCC', data: [1, 2, 3, 9.4, 5, 6, 8, 9, 9, 9.5] }] }); }); }); </script> </head> <body> <div id="container" style="height: 400px; width: 380px; border: 1px solid red;"></div> <script src="https://code.highcharts.com/highcharts.js"></script> </body> </html>