From 2ea05285a1daa084635666fb65a4294a33b70199 Mon Sep 17 00:00:00 2001 From: Qstick Date: Mon, 31 May 2021 00:18:07 -0400 Subject: [PATCH] Fixed: DoughnutChart not respecting title or legend --- frontend/src/Components/Chart/DoughnutChart.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/frontend/src/Components/Chart/DoughnutChart.js b/frontend/src/Components/Chart/DoughnutChart.js index 5f38991c6..8a15fa5b2 100644 --- a/frontend/src/Components/Chart/DoughnutChart.js +++ b/frontend/src/Components/Chart/DoughnutChart.js @@ -14,12 +14,14 @@ class DoughnutChart extends Component { type: 'doughnut', options: { maintainAspectRatio: false, - legend: { - position: 'bottom' - }, - title: { - display: true, - text: this.props.title + plugins: { + title: { + display: true, + text: this.props.title + }, + legend: { + position: 'bottom' + } } }, data: {