DataV-Team / DataV

Vue数据可视化组件库(类似阿里DataV,大屏数据展示),提供SVG的边框及装饰、图表、水位图、飞线图等组件,简单易用,长期更新(React版已发布)
http://datav.jiaminghi.com
MIT License
9.09k stars 1.79k forks source link

dv-digital-flop 数字为 0 的时候 数字会不显示 #108

Closed chen-i closed 4 years ago

chen-i commented 4 years ago

Bug report

出现Bug的组件?

dv-digital-flop

组件配置数据?

控制台错误输出?

期望情况?

实际情况?

其他相关信息

image

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

xueyj123 commented 4 years ago

同问,也是碰到这个问题了

jiaming743 commented 4 years ago

已修复,升级至v2.9.3即可,参见v2.9.3