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?