apache / apache/echarts

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

Open
#21,333 2 comments 0 reactions 0 assignees View on GitHub
bug pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### 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

```markdown
- OS:
- Browser:
- Framework:
```

### Any additional comments?

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.