From b6bce04160172b3bc1f484e76011999592a7c149 Mon Sep 17 00:00:00 2001 From: Kartik Sharma Date: Sat, 6 Dec 2025 15:43:12 +0530 Subject: [PATCH] Adding rupees symbol at hover effect. --- src/components/Dashboard/ExpenseAnalysis.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/Dashboard/ExpenseAnalysis.jsx b/src/components/Dashboard/ExpenseAnalysis.jsx index 3c6b0d08..b45177fb 100644 --- a/src/components/Dashboard/ExpenseAnalysis.jsx +++ b/src/components/Dashboard/ExpenseAnalysis.jsx @@ -50,6 +50,11 @@ const ExpenseAnalysis = () => { chart: { type: "donut" }, labels, legend: { show: false }, + tooltip: { + y: { + formatter: (value) => formatCurrency(value), + }, + }, dataLabels: { enabled: true, formatter: (val) => `${val.toFixed(0)}%` }, colors: flatColors, plotOptions: { @@ -127,7 +132,7 @@ const ExpenseAnalysis = () => { options={donutOptions} series={series} type="donut" - width="70%" + width="75%" height={320} />