feat: 看板告警统计0数字不显示

This commit is contained in:
TsMask
2024-02-06 12:00:12 +08:00
parent 86d73d3e41
commit 7dd851a2d7

View File

@@ -168,11 +168,14 @@ function initPicture() {
{
type: 'pie',
radius: '35%',
color: ['#f5222d', '#ffc069', '#fadb14', '#722ed1', '#1677ff'],
color: ['#f5222d', '#fa8c16', '#fadb14', '#1677ff', '#13c2c2'],
label: {
show: false,
show: true,
position: 'inner',
formatter: ' {c}',
formatter: (params: any) => {
if (!params.value) return '';
return `${params.value}`;
},
},
labelLine: {
show: false,