gantt display as bar - Javascript highcharts

Javascript examples for highcharts:Bar Chart

Description

gantt display as bar

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.  ja  va  2s .c o m
   $('#container').highcharts({
       chart: {
           type: 'columnrange',
           inverted: true
       },
       title: {
           text: 'Temperature variation by month'
       },
      subtitle: {
           text: 'Observed in Vik i Sogn, Norway, 2009'
       },
       xAxis: {
           categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
       },
       yAxis: {
           title: {
               text: 'Temperature ( ?C )'
           }
       },
       tooltip: {
           valueSuffix: '?C'
       },
       plotOptions: {
           columnrange: {
              dataLabels: {
                 enabled: true,
                 formatter: function () {
                    return this.y + '?C';
                 }
              }
           }
       },
       legend: {
           enabled: false
       },
       series: [{
           name: 'Temperatures3',
           data: [
                [0, 0, 5.6]
         ]
       },{
           name: 'Temperatures',
           data: [
                [1, 6.7, 9.4],
            [2, 6.7, 8.5],
            [3, 6.5, 9.4],
            [4, 6.4, 19.9],
         ]
       },{
           name: 'Temperatures2',
           data: [
            [1, 9.4, 10.3],
            [3, 8.5, 11.9],
            [4, 9.4, 12.3],
            [5, 19.9,23.3],
         ]
       }]
   });
});

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