Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to fix specific nodes in force graph #5966

Closed
eskimoblood opened this issue Jun 9, 2017 · 9 comments
Closed

Is there a way to fix specific nodes in force graph #5966

eskimoblood opened this issue Jun 9, 2017 · 9 comments

Comments

@eskimoblood
Copy link

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?

@unship
Copy link

unship commented Jun 11, 2017

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 #5965

@pissang
Copy link
Contributor

pissang commented Jun 11, 2017

@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!

@eskimoblood
Copy link
Author

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

@pissang
Copy link
Contributor

pissang commented Jun 11, 2017

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

@eskimoblood
Copy link
Author

eskimoblood commented Jun 11, 2017

Thanks, when will this fix be available in npm?

@100pah
Copy link
Member

100pah commented Jun 11, 2017

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

@Ovilia
Copy link
Contributor

Ovilia commented Jun 16, 2017

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

@ys278099744
Copy link

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?中文版:我想拖动一个点到随便一个位置,但是这个点老是弹回去,有没有办法让他拖到哪,就固定在哪,这个操作很常见,网上查了一下,很多人有这种需求,希望能够解决

@ys278099744
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants