Set series padding - Javascript highcharts

Javascript examples for highcharts:Chart Series

Description

Set series padding

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <title>Highcharts Demo</title> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> 
      <script type="text/javascript">
$(function () {/*from w w w.  j av a 2s. co  m*/
   $('#container').highcharts({
       chart: {
           type: 'bar',
            height: 200,
       },
       xAxis: {
           categories: ['A', 'B', 'C']
       },
       plotOptions: {
           series: {
               pointWidth: 20,
                pointPadding: 0,
                groupPadding: 0
           }
       },
       series: [{
           data: [29, 71, 106]
       }]
   });
});

      </script> 
   </head> 
   <body> 
      <script src="https://code.highcharts.com/highcharts.js"></script> 
      <div id="container"></div>  
   </body>
</html>

Related Tutorials