set full height of column/bar background color in column chart - Javascript highcharts

Javascript examples for highcharts:Column Chart

Description

set full height of column/bar background color 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.4.3.min.js"></script> 
      <script type="text/javascript">
    $(function(){/*from   w  w w .j  a v a  2s.c  om*/
$('#container').highcharts({
    chart: {
      type: 'column'
    },
    yAxis: {
      min: 0,
      max: 100
    },
    plotOptions: {
      series: {
        pointPadding: 0
      }
    },
    series: [{
        enableMouseTracking: false,
        showInLegend: false,
        grouping: false,
        color: 'url(#highcharts-default-pattern-1)',
        data: [100, 100]
    }, {
      data: [20, 50]
    }, {
      data: [40, 30]
    }]
});
    });

      </script> 
   </head> 
   <body> 
      <script src="https://code.highcharts.com/highcharts.js"></script> 
      <script src="https://highcharts.github.io/pattern-fill/pattern-fill-v2.js"></script> 
      <div id="container" style="height: 400px"></div>  
   </body>
</html>

Related Tutorials