fix(图表): 修复标签设置百分比格式后会带有其他格式配置的后缀问题

This commit is contained in:
ulleo
2024-12-30 14:20:38 +08:00
committed by fit2cloud-chenyw
parent 4e4e64511c
commit 2e6d66603e

View File

@@ -71,6 +71,8 @@ function transSeparatorAndSuffix(value, formatter) {
}
if (formatter.type === 'percent') {
str += '%'
//百分比没有后缀,直接返回
return str
} else {
if (formatter.unit === 1000) {
str += '千'