style:首页-设备分类统计图表label属性添加value显示

main
黄伟杰 1 month ago
parent baa490793b
commit 862bf73668

@ -424,13 +424,14 @@ const deviceRepairLineOptions = ref<EChartsOption>({
} }
] ]
}) })
const deviceCategoryPieOptionsData = ref<EChartsOption>( const deviceCategoryPieOptionsData = ref<EChartsOption>({
{title: { title: {
text: '设备分类统计', text: '设备分类统计',
left: 'center' left: 'center'
}, },
tooltip: { tooltip: {
trigger: 'item' trigger: 'item',
formatter: '{b}{c}'
}, },
legend: { legend: {
orient: 'vertical', orient: 'vertical',
@ -442,10 +443,13 @@ const deviceCategoryPieOptionsData = ref<EChartsOption>(
type: 'pie', type: 'pie',
radius: '55%', radius: '55%',
center: ['50%', '60%'], center: ['50%', '60%'],
label: {
show: true,
formatter: '{b}{c}'
} }
]
} }
) ]
})
const moldTypeBarOptionsData = ref<EChartsOption>({ const moldTypeBarOptionsData = ref<EChartsOption>({
title: { title: {

Loading…
Cancel
Save