echarts
echarts copied to clipboard
[Bug] color parse() does not understand new spec rgb and hsl colors
Version
5.4.3
Link to Minimal Reproduction
NA
Steps to Reproduce
I have a bar chart with gradient fill of colors using the new w3c standard for hsl, a la., hsl(229deg 73% 50%) When I hover my chart the tooltip animation code tries to parse these colors for the keyframes and throws because the color.parse function does not understand this color format and is returning undefined where a color is expected by the keyframe anim code.
Current Behavior
color.parse('hsl(0deg 100% 100%)`) returns undefined
Expected Behavior
color.parse('hsl(0deg 100% 100%)`) returns some valid color value.
Environment
- OS: NA
- Browser: NA
- Framework: NA
Any additional comments?
No response