cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
747
Views
0
Helpful
2
Replies

"dataProcessor: 'force'" not working for nodeSets

mspoerr
Level 4
Level 4

Hello,

it seems that "dataProcessor: 'force'" property is not working for nodeSets -> all nodeSets are at the same position. is there an alternative?

Thanks,

Mathias

1 Accepted Solution

Accepted Solutions

aaikepae
Cisco Employee
Cisco Employee

Hi Mathias,

nodeSet will not involved in the force layout process. If you want to set/get a position to a nodeSet. You can use vertexPositionSetter/vertexPositionGetter to achieve that.

I made a example, for the nodeSet, use the first node's position as its position. You can modify this base on your real use case.

http://jsfiddle.net/nextsupport/4Lr3kuos/

Abu

View solution in original post

2 Replies 2

aaikepae
Cisco Employee
Cisco Employee

Hi Mathias,

nodeSet will not involved in the force layout process. If you want to set/get a position to a nodeSet. You can use vertexPositionSetter/vertexPositionGetter to achieve that.

I made a example, for the nodeSet, use the first node's position as its position. You can modify this base on your real use case.

http://jsfiddle.net/nextsupport/4Lr3kuos/

Abu

Hi Abu,

Thank you very much!

Regards,

Mathias