hantongyou opened a new issue, #19665:
URL: https://github.com/apache/echarts/issues/19665

   ### 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配置项:
   ```javascript
   ...
   itemStyle: {  
                           
                           borderColor: function(params){
                               if(params.data.value>10)
                               return "red";
                               else return "green";
                           }
                       
                   }
   ...
   ```
   3.在我尝试失败之后,我试图打印params,但是并没有任何东西被打印,同时如果我直接在borderColor中return 
"red"也并没有成功修改样式,这是为什么?为了达成自定义样式的效果我应该如何做?
   
   ### Current Behavior
   
   渲染树状图节点时自定义修改节点边框样式失效
   
   ### Expected Behavior
   
   可以根据节点属性值自定义节点边框样式
   
   ### Environment
   
   ```markdown
   - OS:windows 11
   - Browser:Chrome 122.0.6261.70
   - Framework:[email protected]
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to