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

@@ -14,8 +14,8 @@ export default defineConfig({
},
expect: {
toHaveScreenshot: {
maxDiffPixelRatio: 0.05,
threshold: 0.2,
maxDiffPixelRatio: 0.02,
threshold: 0.05,
animations: 'disabled',
},
},

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,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 56 KiB