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
        }
    },
    ...
}]
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b86d-2b603.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b86d-2b603.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?