Skip to content

itemStyle中color使用回调函数时,线条颜色不发生变化,只有节点颜色发生变化 #10910

@874435441

Description

@874435441

Version

4.2.1-rc1

Reproduction link

https://gallery.echartsjs.com/editor.html?c=xSatSVYKMck&v=1

Steps to reproduce

无需操作,打开链接后已显示出bug

What is expected?

当itemStyle的color使用回调函数时,线条颜色也能产生相应变化

What is actually happening?

当itemStyle的color使用回调函数时,线条颜色不能产生相应变化


当itemStyle的color使用固定颜色(例如:'#ABCDEF')时,线条颜色既然能变化为该颜色。

那么itemStyle的color使用回调函数时为何不能改变线条颜色呢?我认为这并不合理。

而且这个与文档描述不符。

注: 修改 lineStyle 中的颜色不会影响图例颜色,如果需要图例颜色和折线图颜色一致,需修改 itemStyle.color,线条颜色默认也会取改颜色。

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions