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 - }} -

-
+ ? sectors[active].value + : totalValue, + 'Currency' + ) + }} +

+

+ {{ + active !== null && sectors.length !== 0 + ? sectors[active].label + : totalLabel + }} +

diff --git a/src/pages/Dashboard/Expenses.vue b/src/pages/Dashboard/Expenses.vue index 1a8e2b46..09c44b38 100644 --- a/src/pages/Dashboard/Expenses.vue +++ b/src/pages/Dashboard/Expenses.vue @@ -32,7 +32,7 @@ :sectors="sectors" :offset-x="3" :thickness="11.5" - :text-offset-x="14" + :text-offset-x="6.5" :value-formatter="(value) => frappe.format(value, 'Currency')" :total-label="t('Total Spending')" @change="(value) => (active = value)"