Skip to content

[Bug] decal backgroundColor not work when echarts.init render svg #21333

@dadazhouRenee

Description

@dadazhouRenee

Version

5.4.2

Link to Minimal Reproduction

https://codepen.io/dadazhouRenee1012/pen/vELzoJw

Steps to Reproduce

  1. 设置bar itemstyle color
  2. 设置 decal backgroundColor
  3. echarts.init 配置renderer: 'svg'

Current Behavior

在svg渲染下背景色不生效

Expected Behavior

背景色生效

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

可以通过 bar本身为透明色,但是我需要颜色顺序按照配置的colors展示,设置透明色会导致,第2个柱子(没有贴纸)的颜色实际使用的是第一个颜色, 需要不断地重新计算对应的 color

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpendingWe are not sure about whether this is a bug/new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions