Column type visualization: multiple data points for the same Xaxis label - Javascript highcharts

Javascript examples for highcharts:Column Chart

Description

Column type visualization: multiple data points for the same Xaxis label

Demo Code

ResultView the demo in separate window

<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.js"></script> 
      <div id="container"></div> 
      <script type="text/javascript">
var categories = ['a', 'b', 'c', 'd'],
  series = [{/*from w ww. j  a va2  s  . c om*/
    data: [2, 8, 4, 15]
  }, {
    data: [3, 2, 2, 10]
  }, {
    data: [7, 1, 9, 4]
  }];
Highcharts.chart('container', {
  chart: {
    type: 'column'
  },
  xAxis: {
    categories: categories
  },
  series: series
});

      </script>  
   </body>
</html>

Related Tutorials