draw multiple segments overlapping and non overlapping in columnrange charts? - Javascript highcharts

Javascript examples for highcharts:Column Chart

Description

draw multiple segments overlapping and non overlapping in columnrange charts?

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.9.1.js"></script> 
      <script type="text/javascript">
$(function () {//www  . jav  a2s .  c o  m
    $('#container').highcharts({
        chart: {
            type: 'columnrange',
            inverted: true
        },
        legend: {
            enabled: false
        },
        series: [{
            name: 'Temperatures',
            data: [
                {low: -2.7, high: 19.4, x: 0},
                {low: -2.7, high: 19.4, x: 1},
                {low: -2.7, high: 19.4, x: 2}
            ]
        }, {
            linkedTo: 'Temperatures',
            data: [
                {low: -2.7, high: 19.4, x: 0},
                {low: -0.7, high: 23.4, x: 2}
                ]
        }, {
            linkedTo: 'Temperatures',
            data: [
                {low: -12.7, high: 19.4, x: 2},
                {low: -0.7, high: 3.4, x: 6}
                ]
        }]
    });
});

      </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