echarts [Bug] 折线图itemStyle中color使用回调函数时,只改变节点颜色,线条颜色不发生变化

xlpyo6sf  于 4个月前  发布在  Echarts
关注(0)|答案(5)|浏览(115)

Version

5.3.1

https://echarts.apache.org/examples/zh/editor.html?code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRARAMYCGYVA5sAE7m0A0J6AE2aMiAbVoBZGL1i0AKgFcqM2gHUqAlXIAWClQDEOEFQGVmphdFoBdEgF8-6cjnxEkDknipGqhWKNRSWCEwEX8ADgAmAAYeWABOAGZIuPjogEZUxIAWOPTItLzExNjYdOTo60dSCmo6ABsIaGV7WzsgA&_source=echarts-doc-preview

Steps to Reproduce

Current Behavior

使用红色写法(字符串)时可以同时改变节点和折线颜色
使用蓝色写法(回调函数)时只改变节点颜色,折线颜色不变

两种配置结果不一致

Expected Behavior

当itemStyle的color使用回调函数时,线条颜色也可以发生变化

Environment

- OS:macOS
- Browser:
- Framework:

Any additional comments?

#10910

这个问题之前应该修复过,现在又出现了,麻烦看下。或者需要和其他配置配合使用,烦请告知。个人没有在文档上找到,感谢

myzjeezk

myzjeezk1#

@ggcfcmd 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] When using the callback function for color in line chart itemStyle, only the node color is changed, but the line color does not change.

BODY

Version

5.3.1

https://echarts.apache.org/examples/en/editor.html?code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRARAMYCGYVA5sAE7m0A0J6AE2aMiAbVoBZGL1i0AKgFcqM2gHUqAlXIAWClQDEOEFQGVmphdFoBdEgF8-6cjnxEk DknipGqhWKNRSWCEwEX8ADgAmAAYeWABOAGZIuPjogEZUxIAWOPTItLzExNjYdOTo60dSCmo6ABsIaGV7WzsgA&_source=echarts-doc-preview

Steps to Reproduce

Current Behavior

When using red writing (string), you can change the color of nodes and polylines at the same time.
When using blue writing (callback function), only the node color is changed, and the polyline color remains unchanged.

The results of the two configurations are inconsistent

Expected Behavior

When the color of itemStyle uses the callback function, the line color can also change.

Environment

- OS: macOS
-Browser:
- Framework:

Any additional comments?

#10910

This problem should have been fixed before, but it has appeared again now. Please take a look. Or it needs to be used with other configurations, please let me know. I didn't find it in the documentation, thank you

uqjltbpv

uqjltbpv2#

confirmed, wow this one has been around for a lo-o-ng time 😲

s71maibg

s71maibg3#

confirmed, wow this one has been around for a lo-o-ng time 😲

ohhhh, thanks for answer! is there any plan to fix this issus?

vof42yt1

vof42yt14#

If an issue does not get into milestones or Backlog in a week or two, roll up your sleeves and DIY. ECharts PRs are not easy though, see >130 pending...

ftf50wuq

ftf50wuq5#

What confuses me is that the two configuration methods of a same attribute have two different results. And what can I do?use function way with any other configurations or somethings?

相关问题