Open hantongyou opened 6 months ago
@hantongyou 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. 🤗
API says tree.itemStyle.borderColor can be set to a value, not to a function. See #19606 for customizing trees.
API says tree.itemStyle.borderColor can be set to a value, not to a function. See #19606 for customizing trees.
Thanks, but according to the demo, it can only customizing tree labels but not the nodes' border or nodes color?
Version
5.4.3
Link to Minimal Reproduction
https://echarts.apache.org/examples/zh/editor.html?c=tree-vertical
Steps to Reproduce
1.我使用的是自定义的数据,但是数据格式和官网示例的数据结构保持一致; 2.对于其中每一个数据项我设置了一个属性用以自定义节点边框样式,通过设置如下的itemStyle配置项:
3.在我尝试失败之后,我试图打印params,但是并没有任何东西被打印,同时如果我直接在borderColor中return "red"也并没有成功修改样式,这是为什么?为了达成自定义样式的效果我应该如何做?
Current Behavior
渲染树状图节点时自定义修改节点边框样式失效
Expected Behavior
可以根据节点属性值自定义节点边框样式
Environment
Any additional comments?
No response