echarts [Feature] series.markLine能否做成可移动的?

6fe3ivhb  于 6个月前  发布在  Echarts
关注(0)|答案(3)|浏览(50)

What problem does this feature solve?

我的应用中,markLine是用户动态添加的。此时可能会产生两个问题:

  • 有时候用户想调整markLine的数值,如果能够通过拖拽进行调节,将会更为方便;
  • 如果多条markLine的数值比较接近,而label的位置是预设的,那么它们就有可能相互覆盖,如果label的位置也能拖拽调整就更方便了;

What does the proposed API look like?

markLine以及markLine.label实现可拖拽。

2q5ifsrm

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:

  • Sometimes users want to adjust the value of markLine. It will be more convenient if it can be adjusted by dragging;
  • If the values ​​of multiple markLines are relatively close and the label positions are preset, then they may cover each other. It would be more convenient if the label position can also be dragged and adjusted;

What does the proposed API look like?

markLine and markLine.label are draggable.

byqmnocz

byqmnocz2#

see drag and labelLayout.draggable

f87krz0w

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.

相关问题