Skip to content

Commit

Permalink
Merge pull request #1473 from sriranjan-s/master
Browse files Browse the repository at this point in the history
Added dss changes for demo
  • Loading branch information
upyog-central-git authored Oct 15, 2024
2 parents bc71235 + 88848e8 commit a0715a6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ const CustomPieChart = ({ dataKey = "value", data, setChartDenomination, moduleC
}, [id]);
const CustomLegend=({payload, totalValue})=>{
return (
<div>
<div style={{display:"flex",flexWrap:"wrap"}}>
{payload.map((entry, index)=>(
<div key={`legend-${index}`} style={{display:'flex', alignItems:'center', marginBottom: 5}}>
<div key={`legend-${index}`} style={{display:'flex', alignItems:'center', marginBottom: "5px", width:"50%"}}>
<div style={{width: 10, height:10, backgroundColor: entry.color, marginRight: 5}}/>
<span style={{fontSize: 14, color: '#505ASF', marginRight: 10}}>
{`${entry.value}:${(entry?.payload?.percent * 100).toFixed(1)}% (${Digit.Utils.dss.formatter(entry?.payload?.value, entry?.payload?.payload?.symbol, value?.denomination, true, t)} )`}
Expand Down Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion frontend/micro-ui/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a0715a6

Please sign in to comment.