Category chart with datetime y axis in column chart - Javascript highcharts

Javascript examples for highcharts:Column Chart

Description

Category chart with datetime y axis in column 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://code.jquery.com/jquery-1.9.1.js"></script> 
      <script type="text/javascript">
$(function () {/*w w  w . j av  a2s  .  c om*/
    $('#container').highcharts({
        chart: {
            type: 'column'
        },
        title: {
            text: 'Efficiency Optimization by Branch'
        },
        xAxis: {
            categories: [
                8731,8718
            ]
        },
        yAxis: [{
           title: {
                text: 'Time'
            },
            labels:{
                formatter:function(){
                    return Highcharts.dateFormat('%d:%m:%Y', this.value);
                }
            },
            type:'datetime'
        }],
        legend: {
            shadow: false
        },
        tooltip: {
            shared: true
        },
        plotOptions: {
            column: {
                grouping: false,
                shadow: false,
                borderWidth: 0
            }
        },
        series: [{
            name: 'COMPLETEDTIME',
            color: 'rgba(165,170,217,1)',
            data: [1417680117775,1417680119040],
            
        }]
    });
});

      </script> 
   </head> 
   <body> 
      <script src="https://code.highcharts.com/highcharts.js"></script> 
      <script src="https://code.highcharts.com/modules/exporting.js"></script> 
      <div id="container" style="min-width: 400px; height: 400px; margin: 0 auto"></div>  
   </body>
</html>

Related Tutorials