echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] color parse() does not understand new spec rgb and hsl colors

Open mayfield opened this issue 2 years ago • 0 comments

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

mayfield avatar Feb 09 '24 03:02 mayfield