echarts icon indicating copy to clipboard operation
echarts copied to clipboard

echarts3 使用type=‘graph’ 属性中的draggable 拖拽 ,如何解决鼠标松开就定位当前显示效果?

Open hello-jin opened this issue 9 years ago • 9 comments

One-line summary [问题简述]

echarts3 使用type=‘graph’ 属性中的draggable 拖拽 ,如何解决鼠标松开就定位当前显示效果?

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]: echarts3
  • Browser version [浏览器类型和版本]: 谷歌
  • OS Version [操作系统类型和版本]: windows 7

Expected behaviour [期望结果]

ECharts option [ECharts配置项]

option = {

}

Other comments [其他信息]

hello-jin avatar Jul 18 '17 03:07 hello-jin

如何解决鼠标松开就定位当前显示效果

抱歉没有理解这句话。

100pah avatar Jul 18 '17 07:07 100pah

同问啊,楼主的意思就是,关系图上的节点被拖拽后不要回弹,拖到了哪个坐标就显示在哪个坐标上。

MossByte07 avatar Jul 24 '17 01:07 MossByte07

这个问题后来解决了吗……

stillsilly avatar Sep 27 '17 03:09 stillsilly

有没有每个节点的dragend事件可以设置啊?或者设置引力斥力为0之类的,文档翻了好久没找着解决方案……

stillsilly avatar Sep 27 '17 03:09 stillsilly

其实我也找了好久,type: 'graph',我期望的是,当拖动A节点的时候,其他节点不动。配置上draggable: false,好像没有什么效果。

zdRan avatar Sep 30 '17 07:09 zdRan

现在能实现了吗

ArrayZheng avatar May 02 '18 02:05 ArrayZheng

https://github.com/apache/incubator-echarts/issues/9488#issuecomment-442387333 亲测可以实现 而且效果不错,改动幅度很小

HowToMeetYou avatar Dec 12 '18 01:12 HowToMeetYou

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 19 '20 08:12 stale[bot]

This issue has been automatically closed because it has not had recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!

github-actions[bot] avatar Sep 03 '21 08:09 github-actions[bot]