Incubator-echarts: Is there a way to fix specific nodes in force graph

Created on 9 Jun 2017  ·  9Comments  ·  Source: apache/incubator-echarts

There is a way to set the initial position of nodes in a force graph but is there a way to have this node stay at this position?

Most helpful comment

i want to drag one node to somewhere and stay ,but now it always rebound to its init place,this operation is very useful,can you come true?中文版:我想拖动一个点到随便一个位置,但是这个点老是弹回去,有没有办法让他拖到哪,就固定在哪,这个操作很常见,网上查了一下,很多人有这种需求,希望能够解决

All 9 comments

you use custom physical engine(eg d3) with use echarts very powerful custom series, then you can reuse a lot echarts utility,(like tooltip...)

but custom series can't corresponding to mouse event right now, see https://github.com/ecomfe/echarts/issues/5965

@biolee Great thought! Actually each node can use fixed property to stick it's position. But the idea of integrating d3 layout and custom series will make it much more flexible. We will enhance custom series in the later version. Thanks a lot!

@pissang I tried the fixed property but it has no effect, is there an example to see how it should work?

@eskimoblood Uhhh sorry it's a bug. Will fix it ASAP

Thanks, when will this fix be available in npm?

We have planned to publish the next version next week, including this bug fix.

@eskimoblood It's fixed now. Try it out! :)

i want to drag one node to somewhere and stay ,but now it always rebound to its init place,this operation is very useful,can you come true?中文版:我想拖动一个点到随便一个位置,但是这个点老是弹回去,有没有办法让他拖到哪,就固定在哪,这个操作很常见,网上查了一下,很多人有这种需求,希望能够解决

这个fixed属性,为什么设置后报错找不到这个属性呢?我用的也是4.0版本的echart啊

Was this page helpful?
0 / 5 - 0 ratings