You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you look at the link above, you will see that the position of each graphic circle is being placed by using position: [x, y]. (Refer to Line 107 of the script). The code is working exactly as it should.
Documentation is missing for this object attribute. The code supports it and it works, but without looking at the examples, this is hard to figure out.
Expected Behavior
Documentation should reflect the ability to use position: [x, y] to define the position of the graphic. This is important because if you do not include this as an object attribute, draggable may not work as expected (if draggable is true and you want draggable behavior).
Environment
- OS: Windows 11
- Browser: Any
- Framework: None
(Note that this is independent of any environmental setup)
Any additional comments?
This was discovered when trying to get draggable to work correctly, and I was not including position: [x, y], and I was trying to adjust top/left
While a bit of an edge case, given the significant usage of the library, having accurate documentation can save people many hours of time. Details on nuances such as this are still difficult to find on resources like stackoverflow.
Thanks for your consideration!
Lee
The text was updated successfully, but these errors were encountered:
Version
5.2.2
Link to Minimal Reproduction
https://echarts.apache.org/examples/en/editor.html?c=line-draggable
Steps to Reproduce
Current Behavior
Documentation is missing for this object attribute. The code supports it and it works, but without looking at the examples, this is hard to figure out.
Expected Behavior
Documentation should reflect the ability to use position: [x, y] to define the position of the graphic. This is important because if you do not include this as an object attribute, draggable may not work as expected (if draggable is true and you want draggable behavior).
Environment
Any additional comments?
This was discovered when trying to get draggable to work correctly, and I was not including position: [x, y], and I was trying to adjust top/left
While a bit of an edge case, given the significant usage of the library, having accurate documentation can save people many hours of time. Details on nuances such as this are still difficult to find on resources like stackoverflow.
Thanks for your consideration!
Lee
The text was updated successfully, but these errors were encountered: