X-axis alignment for Columnrange chart - Javascript highcharts

Javascript examples for highcharts:Column Chart

Description

X-axis alignment for Columnrange chart

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://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> 
      <script type="text/javascript">
$(function () {//from   w ww  .j  av a  2 s  . c  om
    $('#container').highcharts({
        chart: {
            type: 'columnrange',
            inverted: true
        },
        legend: {
            enabled: false
        },
        /*xAxis:{
            tickPixelInterval:1000
        },*/
        plotOptions:{
            series:{
                grouping:false
            }
        },
        series: [
            {
                id: 'series1',
                name: 'series1',
                data:[[0, 0, 20]]
            },
            {
                id: 'series2',
                name: 'series2',
                data:[[1, 5, 20]]
            },
            {
                id: 'series3',
                name: 'series3',
                data:[[2, 0, 20]]
            },
            {
                name: 'series5',
                id: 'series4',
                data:[[3, 5, 20]]
            }
        ]
    });
});

      </script> 
   </head> 
   <body> 
      <script src="https://code.highcharts.com/highcharts.js"></script> 
      <script src="https://code.highcharts.com/highcharts-more.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>

Related Tutorials