Closed chen-i closed 4 years ago
dv-digital-flop
series: [ { type: "gauge", startAngle: -Math.PI / 2, endAngle: Math.PI * 1.5, arcLineWidth: 10, data: [ { name: "itemA", value: percent, gradient: ["#03c2fd", "#1ed3e5", "#2fded6"] } ], axisLabel: { show: false }, axisTick: { show: false }, pointer: { show: false }, dataItemStyle: { lineCap: "round" }, details: { show: true, formatter: "{value}%", style: { fill: "#1ed3e5", fontSize: 36 } } } ]
value: percent, percent为0是也不显示数字0
同问,也是碰到这个问题了
已修复,升级至v2.9.3即可,参见v2.9.3
v2.9.3
Bug report
出现Bug的组件?
dv-digital-flop
组件配置数据?
控制台错误输出?
期望情况?
实际情况?
其他相关信息
series: [ { type: "gauge", startAngle: -Math.PI / 2, endAngle: Math.PI * 1.5, arcLineWidth: 10, data: [ { name: "itemA", value: percent, gradient: ["#03c2fd", "#1ed3e5", "#2fded6"] } ], axisLabel: { show: false }, axisTick: { show: false }, pointer: { show: false }, dataItemStyle: { lineCap: "round" }, details: { show: true, formatter: "{value}%", style: { fill: "#1ed3e5", fontSize: 36 } } } ]
value: percent, percent为0是也不显示数字0