Skip to content

svg方式渲染折线图时,当数据源的所有数据值相同时,阴影失效,且影响了线条的展示 #12614

@liuhui666

Description

@liuhui666

Version

4.7.0

Reproduction link

https://codesandbox.io/s/beautiful-currying-esdpl?file=/src/App.js

Steps to reproduce

打开之后无需操作 直接看到现象

  1. echarts.init(dom, null, {renderer: "svg"});
  2. series[0].data =[1,1,1,1,1,1,1]
  3. series[0].lineStyle={
    shadowBlur: 20,
    shadowOffsetX: 20,
    shadowOffsetY: 20

}

What is expected?

能有一条可见的线条

What is actually happening?

只展示出折线拐点标志,线条没有颜色


必要条件是:
1、数据源的所有值一定都要相同
2、lineStyle增加阴影属性

线条的path标签里有style="filter: url("#zr2322-shadow-0");" 导致问题出现

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions