Gap between two bar in columnrange - Javascript highcharts

Javascript examples for highcharts:Column Chart

Description

Gap between two bar in columnrange

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://code.jquery.com/jquery-1.8.3.js"></script> 
      <script type="text/javascript">
    $(window).load(function(){/*from www . ja  va2s .com*/
$(function () {
    $('#container').highcharts({
        chart: {
            type: 'columnrange',
            inverted: true
        },
        title: {
            text: 'Training'
        },
        xAxis: {
            categories: ['Romeo', 'John', 'Rafael'],
            title: {
                text: 'Trainee'
            }
        },
        yAxis: {
            min: 0,
            categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
            title: {
                text: 'Date'
            }
        },
        legend: {
            backgroundColor: '#FFFFFF',
            reversed: true
        },
        plotOptions: {
            series: {
                grouping: false
            }
        },
        series: [{
            name: 'PHP Training',
            data: [
                [0, 0, 2],
                [1, 2, 4],
                [2, 1, 2]
            ]
        }, {
            name: 'Javascript',
            data: [
                [0, 2, 4],
                [1, 5, 6],
                [2, 4, 6]
            ]
        }]
    });
});
    });

      </script> 
   </head> 
   <body> 
      <script src="https://code.highcharts.com/highcharts.js"></script> 
      <script src="https://code.highcharts.com/highcharts-more.js"></script> 
      <div id="container" style="height: 400px"></div>  
   </body>
</html>

Related Tutorials