From c572d102c2804bfde33abbe0e4fea34a9ec6b199 Mon Sep 17 00:00:00 2001 From: susiwen8 Date: Wed, 2 Mar 2022 22:59:17 +0800 Subject: [PATCH] fix(sankey): return cached value --- src/visual/VisualMapping.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/visual/VisualMapping.ts b/src/visual/VisualMapping.ts index 2af648c4de..8898bc7b06 100644 --- a/src/visual/VisualMapping.ts +++ b/src/visual/VisualMapping.ts @@ -698,7 +698,7 @@ function setVisualToOption(thisOption: VisualMappingInnerOption, visualArr: Visu if (!color && __DEV__) { warn(`'${item}' is an illegal color, fallback to '#000000'`, true); } - return zrColor.parse(item) || [0, 0, 0, 1]; + return color || [0, 0, 0, 1]; }); } return visualArr;