apache / apache/echarts

启用 toolbox 功能导致部分 series 不显示

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

Description

### Version
5.0.0

### Reproduction link
[https://www.makeapie.com/editor.html?c=xorZIifJCg&v=1](https://www.makeapie.com/editor.html?c=xorZIifJCg&v=1)

### Steps to reproduce
使用 echarts v5.0 运行链接中的代码,然后注释 line 234-239 行代码打开或关闭 toolbox 功能,会发现当 toolbox 打开时,图上 DC1 和 DC2 文字以及背景色无法正常显示

```javascript
toolbox: {
feature: {
saveAsImage: {},
restore: {},
}
},
```

- 不开启 toolbox
![https://s3.ax1x.com/2020/12/30/rOWkKx.png](https://s3.ax1x.com/2020/12/30/rOWkKx.png)
https://s3.ax1x.com/2020/12/30/rOWkKx.png

- 开启 toolbox
![https://s3.ax1x.com/2020/12/30/rOWZVO.png](https://s3.ax1x.com/2020/12/30/rOWZVO.png)
https://s3.ax1x.com/2020/12/30/rOWZVO.png

### What is expected?
无论是否打开 toolbox,图表上的 series 都能正常显示

### What is actually happening?
注释 line 234-239 行代码打开或关闭 toolbox 功能,会发现当 toolbox 打开时,图上 DC1 和 DC2 文字以及背景色不显示

---
须使用 v5.0 运行以上链接中的代码才能复现此问题,直接使用链接无法复现

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.