From dfe614efaf1d21ea28fe0c0c41c9ebd54e5658dd Mon Sep 17 00:00:00 2001 From: jekkos Date: Sun, 12 May 2024 00:45:56 +0200 Subject: [PATCH] Fix pie charts (#3773) --- app/Views/reports/graphs/pie.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/app/Views/reports/graphs/pie.php b/app/Views/reports/graphs/pie.php index 9ed69df7a..29dd45976 100644 --- a/app/Views/reports/graphs/pie.php +++ b/app/Views/reports/graphs/pie.php @@ -23,10 +23,7 @@ height: '100%', // Padding of the chart drawing area to the container element and labels as a number or padding object {top: 5, right: 5, bottom: 5, left: 5} - chartPadding: { - top: 20, - bottom: 100 - }, + chartPadding: 20, // This option can be set to 'inside', 'outside' or 'center'. // show the labels on the border with the pie chart @@ -67,10 +64,8 @@ var responsiveOptions = [ ['screen and (min-width: 640px)', { height: '80%', - chartPadding: { - top: 20, - bottom: 20 - }, + chartPadding: 20 + }] /*, ['screen and (min-width: 1024px)', { labelOffset: 80,