echarts3 使用type=‘graph’ 属性中的draggable 拖拽 ,如何解决鼠标松开就定位当前显示效果?
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 [其他信息]
如何解决鼠标松开就定位当前显示效果
抱歉没有理解这句话。
同问啊,楼主的意思就是,关系图上的节点被拖拽后不要回弹,拖到了哪个坐标就显示在哪个坐标上。
这个问题后来解决了吗……
有没有每个节点的dragend事件可以设置啊?或者设置引力斥力为0之类的,文档翻了好久没找着解决方案……
其实我也找了好久,type: 'graph',我期望的是,当拖动A节点的时候,其他节点不动。配置上draggable: false,好像没有什么效果。
现在能实现了吗
https://github.com/apache/incubator-echarts/issues/9488#issuecomment-442387333 亲测可以实现 而且效果不错,改动幅度很小
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.
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!