Skip to content

Commit

Permalink
fix: Fix pie chart
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveGT96 committed Jan 8, 2025
1 parent 0d04cc2 commit b828aa9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,8 @@
},
"_moduleAliases": {
"@": "./dist"
},
"volta": {
"node": "18.20.5"
}
}
3 changes: 1 addition & 2 deletions src/components/accessories/charts/pie/Piechart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export const Piechart: FC<IOwnProps> = ({ data, title, height, width }) => {

const options = {
responsive: true,
maintainAspectRatio: true,
aspectRatio: 1,
maintainAspectRatio: false,
plugins: {
legend: {
position: "bottom" as const,
Expand Down
3 changes: 1 addition & 2 deletions src/components/accessories/charts/pie/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
// }

canvas {
height: 100% !important;
height: unset !important;
width: unset !important;
max-height: calc(100% - 100px) !important;
}

0 comments on commit b828aa9

Please sign in to comment.