From da038abba02797306285d5bcf5c2c30f46392044 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Wed, 14 Apr 2021 15:59:32 -0400 Subject: [PATCH] UI cleanup: Moved Pie chart legends from top to the right --- dashboard.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/dashboard.php b/dashboard.php index 17b43b49..40e1364d 100644 --- a/dashboard.php +++ b/dashboard.php @@ -705,6 +705,12 @@ var myPieChart = new Chart(ctx, { ], }], }, + options: { + legend: { + display: true, + position: 'right' + } + } }); // Set new default font family and font color to mimic Bootstrap's default styling @@ -756,6 +762,12 @@ var myPieChart = new Chart(ctx, { ], }], }, + options: { + legend: { + display: true, + position: 'right' + } + } }); // Pie Chart Example @@ -803,6 +815,12 @@ var myPieChart = new Chart(ctx, { ], }], }, + options: { + legend: { + display: true, + position: 'right' + } + } }); - \ No newline at end of file +