How to show a column with the value Zero in Column chart in Highcharts?

SoftwareNerd picture SoftwareNerd · Aug 31, 2012 · Viewed 14k times · Source

Which I am passing to:

       series: [{
                        name: 'Fixed bugs',
                        data: fixed,
                        pointWidth: 40
                    }, {
                        name: 'Assigned Bugs',
                        data:assigned,
                        pointWidth: 40
                    }, {
                        name: 'Re-Opened Bugs',
                        data: Reopened,
                        pointWidth: 40
                    },
                    {
                        name: 'Closed Bugs',
                        data: closed,
                        pointWidth: 40
                    }]

to this chart and I have the data like this :

     data: fixed=[3,5,5,8]
    data:assigned=[0,1,0,0] 

and follows. Now I want to show the column with zero value to... For me its not showing the column value with zero.

Answer

Thilaga picture Thilaga · Dec 11, 2013

minPointLength will work. Use this.

plotOptions: {
    column: {
    minPointLength: 3
    }
}