Skip to content

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

@zhiqingchen

Description

@zhiqingchen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions