echarts
echarts copied to clipboard
Add labels to Tree series chart lines
One-line summary [问题简述]
This is a feature request. Add the option to see labels in the lines of the Tree series chart.
Version & Environment [版本及环境]
- ECharts version [ECharts 版本]:
- Browser version [浏览器类型和版本]:
- OS Version [操作系统类型和版本]:
Expected behaviour [期望结果]
ECharts option [ECharts配置项]
option = {
}
Other comments [其他信息]
HI @rgomesf , can you post a shot of the example you request.
Hi @pissang . Sure. Here you go
Be able to format the lines as arrow would also be a nice feature.
也想知道Echarts目前能不能实现这个功能
+1
This would be a useful feature. Is there any timeline for when this will be available?
@rgomesf hi, I would like to know how you add arrows in tree series chart, would you mind share the code ?
Is this feature available or not?
+1
Just wanted to throw this would also be valuable for me. I have a use case representing a taxonomy as a tree and it would be useful to add labels to the edges between parents and children to distinguish different types
+1 for supporting edgeLabel in tree.
+1
+1
I found a workaround! :) I hope it is good enough for you all.
I made the relationships to be nodes and I set the symbol of those nodes to "none".
Here is my chartOption data:
{ "name": "somenodelabel", "children": [ { "name": "somelinelabel", "symbol": "none", "collapsed": false, "children": [ { "name": "somenodelabel", "collapsed": false, "children": [] }, { "name": "somenodelabel", "collapsed": false, "children": [] } ] } ] }
Regarding the arrow at the end of the line, the only workaround I can think of is to create your own node symbol (property "symbol", png file is supported), you could therefore create for example a circle with a preceding arrow and if angle is a problem there is also a parameter for that ("symbolRotate").