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;