Increased default height for doughnut charts

This commit is contained in:
Alejandro Celaya 2020-06-06 12:08:21 +02:00
parent 949e0da105
commit cb761dea8f

View file

@ -53,8 +53,8 @@ const generateGraphData = (title, isBarChart, labels, data, highlightedData, hig
const dropLabelIfHidden = (label) => label.startsWith('hidden') ? '' : label; const dropLabelIfHidden = (label) => label.startsWith('hidden') ? '' : label;
const determineHeight = (isBarChart, labels) => { const determineHeight = (isBarChart, labels) => {
if (!isBarChart && labels.length > 8) { if (!isBarChart) {
return 200; return 300;
} }
return isBarChart && labels.length > 20 ? labels.length * 8 : null; return isBarChart && labels.length > 20 ? labels.length * 8 : null;