echarts [Bug] 解惑,由于pieces设置的值和数据一样,导致会出现多一条重叠线,新版和旧版都会这样存在,能告知原因,提供下解决方案吗

bkhjykvo  于 5个月前  发布在  Echarts
关注(0)|答案(3)|浏览(56)

Version

新旧版都存在

https://codepen.io/jimgjw/pen/WNLwERg

Steps to Reproduce

Current Behavior

测试中遇到

Expected Behavior

规则线去除

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

bqucvtff

bqucvtff1#

@jimGJW It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
TRANSLATED

TITLE

[Bug] To solve the confusion, because the value set by pieces is the same as the data, there will be an extra overlapping line, both the new version and the old version will exist like this, can you tell the reason and provide the next solution?

BODY

Version

Both old and new versions exist

https://codepen.io/jimgjw/pen/WNLwERg

Steps to Reproduce

Current Behavior

Encountered in testing

Expected Behavior

Regular line removal

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

iyzzxitl

iyzzxitl2#

duplicate of #18268 , #18948 and others ... first reported in 2017 in #5801
Related to series.type:'line', type:'bar' works fine.

siv3szwd

siv3szwd3#

@helgasoft Thanks for the help. This issue seems to be a different one with #18268 and #18948 because this one is about the blurring of the junction area and the others are when there is only one inRange. I tried to fix this issue but failed to do so. As discussed in #15711, this problem is caused because we use gradient to implement visualMap pieces. If someone is interested in fixing it, the related logic is in LineView.ts#getVisualGradient and PiecewiseModel.ts#getVisualMeta .

相关问题