echarts-bot[bot] commented on issue #19665: URL: https://github.com/apache/echarts/issues/19665#issuecomment-1970603591
@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. 🤗 <details><summary><b>TRANSLATED</b></summary><br> **TITLE** [Bug] Treemap sets node border color, thickness, etc. based on node properties **BODY** ### Version 5.4.3 ### Link to Minimal Reproduction https://echarts.apache.org/examples/zh/editor.html?c=tree-vertical ### Steps to Reproduce 1. I use custom data, but the data format is the same as the data structure of the official website example; 2. For each of these data items, I set a property to customize the node border style, by setting the following itemStyle configuration item: ```javascript ... itemStyle: { borderColor: function(params){ if(params.data.value>10) return "red"; else return "green"; } } ... ``` 3. After I tried to print params, but nothing was printed, and if I returned "red" directly in borderColor, I didn't succeed in modifying the style, why? ### Current Behavior When rendering a treemap node, the custom modification of the node border style is invalid ### Expected Behavior You can customize the node border style based on the node property values ### Environment ```markdown - OS:windows 11 - Browser:Chrome 122.0.6261.70 - Framework:[email protected] ``` ### Any additional comments? _No response_ </details> -- 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]
