When using wxcharts, an error is displayed when the y-axis values are all zero

when using wxcharts, an error is displayed when all y-axis values are 0

columnChart = new WXCharts({
    canvasId: "columnCanvas",
    type: "column",
    categories: this.workHours.categories,
    series: [{
        // data: this.workHours.data,
        data: [0, 0, 0, 0, 0, 0, 0],
        name: "",
        color: "-sharp5299F9"
    }],
    yAxis: {
        disabled: false,
        min: 0,
        gridColor: "-sharpffffff"
    },
    xAxis: {
        disableGrid: false,
        type: "calibration"
    },
    extra: {
        column: {
            width: 20
        }
    },
    animation: false,
    width: wepy.getStorageSync(SYSTEM_INFO).windowWidth,
    height: 240
});

the effect is as follows:

[0,0,0,0,0,0,1]:

how to solve this problem?

Mar.02,2021

both min and max must be set in the yAxis property


set both min and max,max to 1 in the

yAxis property, and

Y

when 0 is set.
Menu