4.2.0-rc.2
https://gallery.echartsjs.com/editor.html?c=xUhc8bMDbM&v=1
Force layout - Mirror edgeLabel problem
What ever you drag the node to anywhere, the edge label will still show 父子, instead of 子父' (read from source: 子 to the target : 父).
the mirror edge label show 子父
Because of reading habit, is from left to right, so this problem might make some people confuse the information is correct or not.
Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.
In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.
Have a nice day! 🍵
Sorry, I couldn't reproduce it, the edge label is always '父子', but I'm using the latest version, maybe you should try version 4.2.1?
@susiwen8 Hi, maybe I use photo will let you easier to understand

This photo show 曾國荃 link to 曾國藩, edge Label is 兄弟 which is I want.
( '弟' is closer to '曾國荃')

But this one, the edge label '弟' is closer to '曾國藩', but '曾國藩' is should be closer to '兄'
@susiwen8
Is there any option can make the edgeLabel position is fixed(maybe just always show the label at one side) ?
OK, I get it, you may misplace 'What is expected' and 'What is actually happening'.
@susiwen8
Is there any option can make the edgeLabel position is fixed(maybe just always show the label at one side) ?
@DieYiSu From docs, there is none,
This is a new feature rather than bug.
so currently this problem looks like doesn't have the solution ? thanks
Currently, I believe this is not possible with ECharts. And I think this is not a frequently used feature so I guess it should not be a new feature.
But for your particular need, I think you need to change the source code by yourself if you insist on this feature. Basically, you need to change the rotate of edge label. It may be related to src/chart/graph but I'm not sure. I'm afraid that's all I can help.
Most helpful comment
OK, I get it, you may misplace 'What is expected' and 'What is actually happening'.