From 9fb714118dd5b7a04f8cfa64354714ff40a59a52 Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Wed, 2 Feb 2022 16:47:02 +0530 Subject: [PATCH] fix(ux): donut chart hover behaviour --- src/components/Charts/DonutChart.vue | 41 ++++++++++++++-------------- src/pages/Dashboard/Expenses.vue | 2 +- 2 files changed, 21 insertions(+), 22 deletions(-) diff --git a/src/components/Charts/DonutChart.vue b/src/components/Charts/DonutChart.vue index 0b9be6af..6ffdeb2f 100644 --- a/src/components/Charts/DonutChart.vue +++ b/src/components/Charts/DonutChart.vue @@ -55,31 +55,30 @@
- {{ - valueFormatter( - active !== null && sectors.length !== 0 - ? sectors[active].value - : totalValue, - 'Currency' - ) - }} -
-- {{ +
+ {{ + valueFormatter( active !== null && sectors.length !== 0 - ? sectors[active].label - : totalLabel - }} -
-+ {{ + active !== null && sectors.length !== 0 + ? sectors[active].label + : totalLabel + }} +