feat: 看板告警统计0数字不显示
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user