From 88848e8b859b31f86edef7c318a0bf6f976cc40d Mon Sep 17 00:00:00 2001 From: sriranjan-s Date: Tue, 15 Oct 2024 13:05:59 +0530 Subject: [PATCH] Added dss changes for demo --- .../micro-ui-internals/packages/modules/dss/package.json | 2 +- .../packages/modules/dss/src/components/CustomPieChart.js | 6 +++--- frontend/micro-ui/web/package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/dss/package.json b/frontend/micro-ui/web/micro-ui-internals/packages/modules/dss/package.json index 5b70fe8f118..f081aed777d 100644 --- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/dss/package.json +++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/dss/package.json @@ -1,6 +1,6 @@ { "name": "@upyog/digit-ui-module-dss", - "version": "1.8.9", + "version": "1.8.10", "license": "MIT", "description": "Digit Dashboard Module", "main": "dist/index.js", diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/dss/src/components/CustomPieChart.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/dss/src/components/CustomPieChart.js index 72a60f9592a..733435534e9 100644 --- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/dss/src/components/CustomPieChart.js +++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/dss/src/components/CustomPieChart.js @@ -154,9 +154,9 @@ const CustomPieChart = ({ dataKey = "value", data, setChartDenomination, moduleC }, [id]); const CustomLegend=({payload, totalValue})=>{ return ( -
+
{payload.map((entry, index)=>( -
+
{`${entry.value}:${(entry?.payload?.percent * 100).toFixed(1)}% (${Digit.Utils.dss.formatter(entry?.payload?.value, entry?.payload?.payload?.symbol, value?.denomination, true, t)} )`} @@ -203,7 +203,7 @@ const CustomPieChart = ({ dataKey = "value", data, setChartDenomination, moduleC outerRadius={checkChartID(id) && !mobileView ? 110 : 90} margin={{ top: isPieClicked ? 0 : 5 }} fill="#8884d8" - label={renderCustomLabel} + //label={renderCustomLabel} labelLine={false} isAnimationActive={false} diff --git a/frontend/micro-ui/web/package.json b/frontend/micro-ui/web/package.json index 7a364746d21..1c31b624aed 100644 --- a/frontend/micro-ui/web/package.json +++ b/frontend/micro-ui/web/package.json @@ -17,7 +17,7 @@ "@upyog/digit-ui-module-common": "1.8.12", "@upyog/digit-ui-module-core": "1.8.2", "@upyog/digit-ui-module-engagement": "1.8.0", - "@upyog/digit-ui-module-dss": "1.8.9", + "@upyog/digit-ui-module-dss": "1.8.10", "@upyog/digit-ui-module-fsm": "1.8.17", "@upyog/digit-ui-module-hrms": "1.8.0", "@upyog/digit-ui-module-mcollect": "1.8.8",