提交
This commit is contained in:
@ -46,8 +46,6 @@ export let pieOption = {
|
|||||||
label: {
|
label: {
|
||||||
alignTo: 'edge',
|
alignTo: 'edge',
|
||||||
formatter: function (params) {
|
formatter: function (params) {
|
||||||
console.log(params, 3333333333);
|
|
||||||
|
|
||||||
// 只显示前三个数据项
|
// 只显示前三个数据项
|
||||||
return `{name|${params.data.name}}\n{percent|${(params.data.completionRate / 100).toFixed(2)}%}`;
|
return `{name|${params.data.name}}\n{percent|${(params.data.completionRate / 100).toFixed(2)}%}`;
|
||||||
},
|
},
|
||||||
|
|||||||
@ -173,7 +173,6 @@ const getOutputData = async () => {
|
|||||||
processedData.forEach((item) => {
|
processedData.forEach((item) => {
|
||||||
item.percentage = totalCapacity > 0 ? ((item.value / totalCapacity) * 100).toFixed(2) : '0%';
|
item.percentage = totalCapacity > 0 ? ((item.value / totalCapacity) * 100).toFixed(2) : '0%';
|
||||||
});
|
});
|
||||||
console.log(processedData, 55555555);
|
|
||||||
|
|
||||||
processedDataList.value = processedData;
|
processedDataList.value = processedData;
|
||||||
initPieChart();
|
initPieChart();
|
||||||
|
|||||||
Reference in New Issue
Block a user