answered
2021-09-14 10:02:50 +0800
cor3000 6280 ● 2 ● 7 ZKCharts is based on Highcharts. So first you can check whether a feature is available in Highcharts first. If not, it can't be available in ZKCharts.
So when asking a question like:
"How to do X with ZKCharts?"
The first question should actually be:
"How to do X with Highcharts?"
So I googled your question: "highcharts column chart hide zero values" and found this right away:
https://stackoverflow.com/questions/15834687/how-to-hide-zero-values-in-column-chart
They mention either to implement a dataLabel.formatter ignoring the labels for zero values or add NULL values into the series at the position of the zeros, in case you don't want any values there at all.
The related ZKCharts API method to set a label formatter is documented here:
https://www.zkoss.org/javadoc/latest/zkcharts/org/zkoss/chart/plotOptions/DataLabels.html#setFormatter-org.zkoss.json.JavaScriptValue-
Did you try that already? Did you encounter any problems doing so?