bars labels

by Malvina Kat

HTML

<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>

<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>

JavaScript

$(function () {
  // var cnt = 7; // Count of the array should be here
    var pntr = 10;
   // var pcnt = 30;
    $('#container').highcharts({
        chart: {
            type: 'column'
        },
        title: {
            text: ''
        },
        credits:{
            enabled:false
        },
        subtitle: {
            text: ''
        },
        xAxis: {
            categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul']
        },
        yAxis: {
            min:0,
            max:100,
            title: {
                text: 'Score ( % )'
            },
            labels:{
                enabled:false
            }
        },
        legend:{
            enabled:false
        },
        plotOptions: 
		{
			column: 
			{
                lineWidth:2,
				dataLabels: 
				{
					enabled: true,
					formatter:function() 
					{
                      //  pntr=10
					//	var pcnt = (this.y);
                        if(this.y == 30)
                        {
                        return ''
                           // return 'Your Text Here' + Highcharts.numberFormat(pcnt,0) + '%';
                       }
                       else{
                       return this.y + '%';
                         //return Highcharts.numberFormat(pcnt,0) + '%';
                        }
					}
				},
				enableMouseTracking: true
			}
		},
        series: [{
            name: 'Tokyo',
            data: [7.0, 6.9, 9.5, 30, 7.4, 21.5, 6]
        }]
    });
});