When the highchart bar chart data is 0, there are no two words for the time being.

now there is a demand, that is, as shown in the figure, when the data is 0, there are no two words, some have data and some do not, and it cannot be solved by flipping through a lot of materials:

clipboard.png
do you have any good solutions? Or suggestions that look more beautiful

Mar.10,2021

you can modify formatter of dataLabels . If the value is 0 display no , otherwise display the number:

series: [{
    ...,
    dataLabels: {
        formatter () {
            return this.y === 0 ? '' : this.y
        }
    },
    ...
}]
Menu