Increased minimum charts height

This commit is contained in:
Alejandro Celaya
2020-04-10 19:47:42 +02:00
parent e37fb1b4bd
commit 7cf49d2c1a
2 changed files with 2 additions and 2 deletions

View File

@@ -88,7 +88,7 @@ const renderGraph = (title, isBarChart, stats, max, highlightedStats, onClick) =
}),
};
const graphData = generateGraphData(title, isBarChart, labels, data, highlightedData);
const height = isBarChart && labels.length > 20 ? labels.length * 8 : null;
const height = isBarChart && labels.length > 20 ? labels.length * 8 : 200;
// Provide a key based on the height, so that every time the dataset changes, a new graph is rendered
return (