bar chart column grouping - Javascript highcharts

Javascript examples for highcharts:Column Chart

Description

bar chart column grouping

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 ava2 s. c o m
    var chart = new Highcharts.Chart({
        chart: {
            renderTo: 'container',
            type: 'column'
        },
        xAxis: {
            type: "category"
        },
        // Added //
        plotOptions: {
           column: {
             grouping: false,
          }
        },
        // Added //
        series: [{
              name: "a",
            data: [{x: 0, y: 70}]
        }, {
              name: "b",
            data: [{x: 1, y: 29}]
        },
        {
              name : "c",
            data: [{x: 2, y: 29}]
        },
        {
        name : "d",
            data: [{x: 3, y: 29}]
        }, {
       name : "e",
            data: [{x: 4, y: 29}]
        },
        {
           name : "f",
            data: [{ x: 5, y: 29}]
        }
        ]
    });
});

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

Related Tutorials