1
0
mirror of https://github.com/elisspace/FxLifeSheet.git synced 2026-08-29 15:44:00 +00:00

Fix crash in pie chart

This commit is contained in:
Felix Krause
2022-03-04 11:46:09 +01:00
parent 721e7cb91d
commit 8cdd416ba5

View File

@@ -71,7 +71,8 @@ function renderPie(key) {
labels.push(currentRow.value);
}
let colors = Object.values(colorsForNumber(values.length));
let colors = colorsForNumber(values.length);
if (colors) { colors = Object.values(colors); }
if (invertedColors) {
colors = colors.reverse();
}