Fix turning off colors

This commit is contained in:
Przemek Więch
2026-05-12 17:19:13 +02:00
parent 6006cf725f
commit 6ee52a1d5f
3 changed files with 6 additions and 3 deletions

View File

@@ -393,7 +393,10 @@ class ChartWrapper {
props.onSelection(info);
}
},
colors: (props.colors && chartColors.get(props.colors)) || undefined,
colors:
props.colors !== undefined
? chartColors.get(props.colors)
: undefined,
animate: true,
updateSvgSize: false,
locale: intl.locale,