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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user