What problem does this feature solve?
我的应用中,markLine是用户动态添加的。此时可能会产生两个问题:
- 有时候用户想调整markLine的数值,如果能够通过拖拽进行调节,将会更为方便;
- 如果多条markLine的数值比较接近,而label的位置是预设的,那么它们就有可能相互覆盖,如果label的位置也能拖拽调整就更方便了;
What does the proposed API look like?
markLine以及markLine.label实现可拖拽。
3条答案
按热度按时间2q5ifsrm1#
@zkycaesar It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
TRANSLATED
BODY
What problem does this feature solve?
In my application, markLine is dynamically added by the user. Two problems may arise at this time:
What does the proposed API look like?
markLine and markLine.label are draggable.
byqmnocz2#
see drag and labelLayout.draggable
f87krz0w3#
see drag and labelLayout.draggable
labelLayout.draggable and series-line.markLine seem not the same thing.
And by drag , you mean I should use graphic.elements-line to create a draggable 'series.markLine' myself? I was expecting a out-of-box component, but... sure, I can do that, if this feature is not in the plan.