From 9860c1db54b5697c98dc3abafc4b26ddb1697dbb Mon Sep 17 00:00:00 2001 From: MaysWind Date: Wed, 4 Dec 2024 22:44:45 +0800 Subject: [PATCH] modify style --- src/components/mobile/TrendsBarChart.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/mobile/TrendsBarChart.vue b/src/components/mobile/TrendsBarChart.vue index 36461ad2..63c72854 100644 --- a/src/components/mobile/TrendsBarChart.vue +++ b/src/components/mobile/TrendsBarChart.vue @@ -246,10 +246,10 @@ export default { } for (let i = 0; i < finalDataItems.length; i++) { - if (maxTotalAmount > 0) { + if (maxTotalAmount > 0 && finalDataItems[i].totalAmount > 0) { finalDataItems[i].percent = 100.0 * finalDataItems[i].totalAmount / maxTotalAmount; } else { - finalDataItems[i].percent = 100.0; + finalDataItems[i].percent = 0.0; } }