remove grid line on column chart - Javascript highcharts

Javascript examples for highcharts:Line Chart

Description

remove grid line on 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> 
      <style id="compiled-css" type="text/css">

body {background-color:#344a60;}


      </style> 
      <script type="text/javascript">
$(function () {//ww  w.java  2s .com
    $('#container').highcharts({
        colors: ['#00f900','#ffff3c','#ff2600'],
        credits: {enabled:false},
        exporting: {enabled:false},
        legend: {itemDistance:60},
        lineColor:'red',
        chart: {
            type: 'column',
            backgroundColor: 'transparent'
        },
        title: {
            text:''
        },
         legend:{
            itemStyle: {
                color: 'white',
                fontWeight:'normal',
                fontFamily:'helvetica',
                fontSize:'12px'
            }
         },
        xAxis: {
            categories: ['Jan', 'Feb', 'mar'],
            gridLineColor: 'transparent',
            gridTextColor: '#ffffff',
            lineColor: 'transparent',
            tickColor: 'transparent',
            showEmpty: false,
            labels: {
                format:'{value}',
                    style: {
                        color: '#FFFFFF',
                        marginTop:'20'
                    }
                }
        },
        yAxis: {
            title: {
                text: '',
                },
             gridLineColor: '#ffffff',
             gridLineWidth: 0,
            labels: {
                format:'{value}',
                    style: {
                        color: '#FFFFFF',
                        fontSize:'8px'
                    }
                }
        },
        plotOptions: {
            column: {
                borderColor:"transparent",
                   animation: false,
                dataLabels: {
                    enabled: true,
                    color: "#FFFFFF",
                    style: {"fontSize":"18px","fontWeight":"normal","textShadow":"0"}
                },
                enableMouseTracking: false
            }
        },
        series: [{
            name: 'On Track',
            data: [77, 80,""]
        }, {
            name: 'At Risk',
            data: [2, 3,""]
        }, {
            name: 'High Risk',
            data: [3, 8,""]
        }]
    });
});

      </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: 310px; height: 400px; margin: 0 auto"></div>  
   </body>
</html>

Related Tutorials