Dear ECharts-Team,

I want to create an interactive view on a huge graph, that fetches new
data on demand: the whole graph is too huge to be loaded at once.

I start with: a subgraph is loaded for a given node, layout 'force',
roam set to 'scale'.

To explore new nodes: When the user clicks on a node, that node is made
the new center and all k-nearest neighbors of that node are fetched in
addition to the existing ones.

However that doesn't work, I can't get the new center node to be centered.


I tried the following:

1) Make the newly selected node be fixed with x and y at the canvas
center, and merging those new options. The node is fixed now, but not at
the center: at the current position.

2) Replace the new options, but then the graph's current layout is
destroyed totally (a new force layout is done, which is totally
different in like 99,999% of the cases), also not visually pleasing.


So I have the following questions:

a) Is there a trick to force the fixed position of a node to their x,y
coordinates when updating options?

b) Is it somehow possible to get the current positions of all nodes
after the force layout is finished? Then I could make them all fixed and
replace the options again. I imagine somehwere this state must exist for
you guys to be able to layouting them.


Thank you in advance for your answers!

Regards,

Boris



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org
For additional commands, e-mail: dev-h...@echarts.apache.org

Reply via email to