Javascript examples for highcharts:Chart Configuration
Starting the chart from the extreme left
<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 ww .j a va2s . c o m*/ $('#container').highcharts({ chart: { type: 'column' }, title: { text: 'Monthly Average Rainfall' }, subtitle: { text: 'Source: WorldClimate.com' }, xAxis: { type:'category', }, yAxis: { min: 0, title: { text: 'Rainfall (mm)' } }, plotOptions: { column: { borderWidth: 0 }, series: { groupPadding: 0 } }, series: [{ name: 'Tokyo', data: [49.9] }, { name: 'New York', data: [83.6] }, { name: 'London', data: [48.9] }, { name: 'Berlin', data: [42.4] }] }); }); </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>