Javascript examples for highcharts:Chart Data
Alignment of Single Data in bat chart
<html> <head> <title>Highcharts Demo</title> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body> <script src="https://code.highcharts.com/highcharts.src.js"></script> <div id="container"></div> <script type="text/javascript"> var chart = Highcharts.chart('container', { chart: {//from w ww .j a v a 2 s . co m plotBackgroundColor: null, plotBorderWidth: null, plotShadow: false }, plotOptions: { series: { dataLabels: { enabled: true, formatter: function() { return this.point.t; } }, pointPadding: 0.4 } }, title: { text: 'Overdue Projects' }, xAxis: { categories: ["Please Select to View data"] }, yAxis: { title: { text: 'Hours' } }, series: [{ "type": "column", "name": "Estimated Hours", "data": [2], pointPlacement: -0.3 }, { "type": "column", "name": "Consumed Hours", "data": [3] }] }); </script> </body> </html>