From cb761dea8fe6a610c917bd6d1af3dd9b2e5e2b18 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sat, 6 Jun 2020 12:08:21 +0200 Subject: [PATCH] Increased default height for doughnut charts --- src/visits/helpers/DefaultChart.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/visits/helpers/DefaultChart.js b/src/visits/helpers/DefaultChart.js index 3fbf150c..7d762210 100644 --- a/src/visits/helpers/DefaultChart.js +++ b/src/visits/helpers/DefaultChart.js @@ -53,8 +53,8 @@ const generateGraphData = (title, isBarChart, labels, data, highlightedData, hig const dropLabelIfHidden = (label) => label.startsWith('hidden') ? '' : label; const determineHeight = (isBarChart, labels) => { - if (!isBarChart && labels.length > 8) { - return 200; + if (!isBarChart) { + return 300; } return isBarChart && labels.length > 20 ? labels.length * 8 : null;