Skip to content
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] RadialGradient backgroundColor can't render by svg #17735

Closed
zhiqingchen opened this issue Oct 8, 2022 · 2 comments · Fixed by ecomfe/zrender#959
Closed

[Bug] RadialGradient backgroundColor can't render by svg #17735

zhiqingchen opened this issue Oct 8, 2022 · 2 comments · Fixed by ecomfe/zrender#959
Labels
en This issue is in English new-feature SVG
Milestone

Comments

@zhiqingchen
Copy link

Version

5.4.0

Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=bubble-gradient

Steps to Reproduce

  1. add RadialGradient background
option = {
  backgroundColor: new echarts.graphic.RadialGradient(0.3, 0.3, 0.8, [
    {
      offset: 0,
      color: '#f7f8fa'
    },
    {
      offset: 1,
      color: '#cdd0d5'
    }
  ]),
}
  1. use svg render
  2. result

Current Behavior

image

Expected Behavior

image

Environment

- OS:macOS Monterey
- Browser:Chrome 96.0.4664.55
- Framework:no

Any additional comments?

No response

@zhiqingchen zhiqingchen added the bug label Oct 8, 2022
@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Oct 8, 2022
@plainheart
Copy link
Member

SVG renderer only supports setting a color string as the background now. This feature is in progress and may be supported in future releases. See also the svg-background branch.

@plainheart plainheart added this to the TBD milestone Oct 8, 2022
@plainheart plainheart added new-feature SVG and removed bug pending We are not sure about whether this is a bug/new feature. labels Oct 8, 2022
@koliharesh
Copy link

Hello Sir/Madam, I would like to contribute in your project to solve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
en This issue is in English new-feature SVG
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants