-
Notifications
You must be signed in to change notification settings - Fork 19.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] colorStops里color写法 rgb(254 134 22 / 20%)报错 #17274
Comments
I'm sorry to close this issue for it lacks the necessary title. Please provide a descriptive and as concise as possible title to describe your problems or requests and then the maintainers or I will reopen this issue. Every good bug report or feature request starts with a title. Your issue title is a critical element as it's the first thing maintainers see. A good issue title makes it easier for maintainers to understand what the issue is, easily locate it, and know what steps they'll need to take to fix it. Moreover, it's better to include keywords, as this makes it easier to find the issue self and similar issues in searches. |
@oseaweed It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗 TRANSLATEDTITLE [Bug] ColorStops in colorStops is written as rgb (254 134 22/ 20% error reporting BODY Version5.3.0 Link to Minimal ReproductionNo response Steps to Reproducecolor gradient configuration: Current BehaviorIn colorStops, the writing method of color rgb(254 134 22 / 20%) will report an error, just change it to rgba(254 134 22 / 20%) Expected BehaviorSupport rgb (254 134 22 / 20%) writing method Environment- OS:
- Browser:
- Framework: Any additional comments?No response |
建议使用以逗号分隔的传统写法,我记得空格分隔的写法应该还没有得到 echarts 的完整支持。 |
逗号分割也不行 得用rgba的写法 目前只有用这里会报错 |
带透明度一般还是建议用 rgba 而不是 rgb,尽量使用传统写法,一些浏览器支持的新写法还没有全面兼容。 |
加了正则检测,转换处理。 |
This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue. |
This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks! |
Version
5.3.0
Link to Minimal Reproduction
No response
Steps to Reproduce
color渐变色配置:
Current Behavior
colorStops里color写法 rgb(254 134 22 / 20%)会报错,改成rgba(254 134 22 / 20%)就好了
Expected Behavior
支持 rgb(254 134 22 / 20%)写法
Environment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: