From 0d04cc2574dea9b50f2083263413725f9a29000c Mon Sep 17 00:00:00 2001 From: SteveGT96 Date: Fri, 13 Dec 2024 15:20:44 +0100 Subject: [PATCH] styles: Update pie chart styles --- src/components/accessories/charts/pie/Piechart.tsx | 3 +-- src/components/accessories/charts/pie/styles.scss | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/accessories/charts/pie/Piechart.tsx b/src/components/accessories/charts/pie/Piechart.tsx index 7bbf48549..a80296123 100644 --- a/src/components/accessories/charts/pie/Piechart.tsx +++ b/src/components/accessories/charts/pie/Piechart.tsx @@ -10,11 +10,10 @@ export const Piechart: FC = ({ data, title, height, width }) => { const options = { responsive: true, maintainAspectRatio: true, + aspectRatio: 1, plugins: { legend: { position: "bottom" as const, - maxHeight: 100, - width: "100px", }, title: { display: title !== undefined, diff --git a/src/components/accessories/charts/pie/styles.scss b/src/components/accessories/charts/pie/styles.scss index 8b75d4105..a44995e75 100644 --- a/src/components/accessories/charts/pie/styles.scss +++ b/src/components/accessories/charts/pie/styles.scss @@ -10,5 +10,4 @@ canvas { height: 100% !important; width: unset !important; max-height: calc(100% - 100px) !important; - aspect-ratio: 1 !important; }