Style Column in column chart - Javascript highcharts

Javascript examples for highcharts:Column Chart

Description

Style Column in column chart

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <style id="compiled-css" type="text/css">

#container {/*  ww  w. j  a v a2s.c o m*/
   min-width: 310px;
   max-width: 800px;
   height: 400px;
   margin: 0 auto
}


      </style> 
      <script type="text/javascript">
    window.onload=function(){
Highcharts.chart('container', {
  xAxis: {
    type: 'datetime',
  },
  plotOptions: {
    column: {
      turboThreshold: 10000,
      borderWidth: 0,
      pointRange: 1000 * 3600 * 24,
      pointPadding: 0,
      groupPadding: 0
    },
  },
  series: [{
    type: 'column',
    name: 'column',
    data: [
      [1497484800000, 210000],
      [1497571200000, 120000],
      [1497744000000, 190000]
    ]
  }, {
    type: 'line',
    name: 'line_wide',
    data: [
      [1497484800000, 210000],
      [1497571200000, 120000]
    ]
  }, {
    type: 'line',
    name: 'line_narrow',
    data: [
      [1497484800000, 210000],
      [1497498000000, 120000]
    ],
   visible: false
  }],
});
    }

      </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"></div>  
   </body>
</html>

Related Tutorials