echarts [Bug] labelLayout.draggable in series of type graph doesn't affect edge labels.

kmbjn2e3  于 7个月前  发布在  Echarts
关注(0)|答案(2)|浏览(191)

Version

5.4.2

Link

Steps to Reproduce

  1. Create a series of type graph
  2. set labelLayout.draggable to true

Current Behavior

labelLayout.draggable works for node labels but not for edge labels.

Expected Behavior

Since labelLayout 's position parameters ( x , y , dx , dy ) DO affect the edge label, I would assume that draggable should work too.

Environment

  1. - OS: Manjaro
  2. - Browser: Firefox
  3. - Framework: eCharts 5.4.2

Any additional comments?

No response

zfycwa2u

zfycwa2u1#

This issue is labeled with difficulty: easy .
@bk-m Would you like to debug it by yourself? This is a quicker way to get your problem fixed. Or you may wait for the community to fix.

Please have a look at How to debug ECharts if you'd like to give a try. 🤓

wsewodh2

wsewodh22#

Hello @Ovilia, I was taking a look at this issue and would be interested in working on it. However, I am not quite certain whether this is actually a bug or a lack of a feature. As far as I can see, it is not possible to configure the position of edge labels directly. The labelLayout function seems to have some effect on the edge labels as well, but the x and y position do not affect the edge labels, only the dx and dy properties (unsure whether this is intentional).

Maybe I am missing something, but it does not seem like an easy task to me. Making edge labels draggable would probably be doable but this would not be particularly useful if you couldn't save and restore a label's position in the graph.

相关问题