You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "bk-m (via GitHub)" <gi...@apache.org> on 2023/06/12 12:42:10 UTC
[GitHub] [echarts] bk-m opened a new issue, #18752: [Bug] `labelLayout.draggable` in series of type `graph` doesn't affect edge labels.
bk-m opened a new issue, #18752:
URL: https://github.com/apache/echarts/issues/18752
### Version
5.4.2
### Link to Minimal Reproduction
https://echarts.apache.org/examples/en/editor.html?code=LYTwwgFghgTgLgOgM4QPYHcAyqoBMCWAdgOYAUAlANwBQAJAsQKZykBKA8uwCoD6ACgEEuACQAEAalEByAPS4ocKDKhIkzGU1QyAqgGUBCAFZJUhKQBpRAMwCuhAMZx8p0aU0ApE4XKiA3tVFRRntoeCQEGEZifCQ4RhgAWSgAB1IpGyQLUQ8vKgDRVGSnFwBeP3zAzQAucsC60WAUmoAiDObzCrqYHGAauBgbRksAL1RUXoBmDvrApHwAG0ZCOBqrKHm1aZn7JbiYGoBtAFoAThOEE4B2SwnLhEuARgBdfIBfLdn4_EYkQ87A_wzOpwEDJRg1KTEGApCAWf51exjGAEQgKRi6ECxRi9UTNTTteGVRioACShFwjAAHjUAAwfGZIEDAABGqHmunww3BogedMJom6UBx_UG9PquGhxGIUGZiz6AyG_PmMsY8xqgKBdRQGHlov5gSsqBgjTgewhvgAAgcAExPV5wzV1ZKoObFQgQ1mm8ZSfnvJUq-aYKAgVA2FjJWBCpA-DWOyJwGwwQi1R11amiCPQ4DhSKOBCUsWakA1TNRiLBRAgCQ8gCshaBEqgUplctEIsVqdEr199aCuCYGJZbMOUns-Bg9kWWSksG66CkT17jH76KZrPZnO5BwALJZrTTF_zl0wg8zVer9aJtehdR3U4blhyuTV972DUaTWbpL5mfbe37HXmIh0RBVtfFES90HwXA4AgGo61EexEwANyWH5flEGkEGtN8CgjMcQVpC5_17eRFD-TtjgeXl7gea0AA4bm3BAaRpAA2OlpAEGBOVMBdcOOejrVohibiw1iOMsKQADlUApURrX4y9BOEx5RNEbdxPYziZLkxhRAmJTHUXCDAKIABrDCDkvWNUxMRMdlpXDAkUGAmBWHlLwA1NbMdeyJ25PlOxc2B3JfXDvMdXzNX8xzpFk-SHg
dYLXLC-K9IMn1O0izVoqBWLuV0-TFOcttQuYCEEv0wyvN7Q8gW7eoXkCV4aECUBIFgRAIGgxhsDwIgyDydrwFCRA1DgdgimcQhSEKN08leKggA
### 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
```markdown
- OS: Manjaro
- Browser: Firefox
- Framework: eCharts 5.4.2
```
### 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: commits-unsubscribe@echarts.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] TLahnor commented on issue #18752: [Bug] `labelLayout.draggable` in series of type `graph` doesn't affect edge labels.
Posted by "TLahnor (via GitHub)" <gi...@apache.org>.
TLahnor commented on issue #18752:
URL: https://github.com/apache/echarts/issues/18752#issuecomment-1717562385
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.
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] echarts-bot[bot] commented on issue #18752: [Bug] `labelLayout.draggable` in series of type `graph` doesn't affect edge labels.
Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on issue #18752:
URL: https://github.com/apache/echarts/issues/18752#issuecomment-1589097713
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](https://github.com/apache/echarts/blob/master/CONTRIBUTING.md#how-to-debug-echarts) if you'd like to give a try. 🤓
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org