@antoinephp wrote:
Hi,
my question is about coordinates. I’ve read Coordinate Systems but I have not understood everything.
I need to visualize some “text entities” based on a parent child relationship, all around a single central node, so MindMap perfectly fit this need.
I have not understood how to deal with coordinates of each single node. Every node has a property “loc”, but how to define the correct values for X and Y to make sure that the mindmap looks good ?
These examples comme from the sample page :
{"key":0, "text":"Mind Map", "loc":"0 0"},{“key”:1, “parent”:0, “text”:“Getting more time”, “brush”:“skyblue”, “dir”:“right”, “loc”:“77 -22”},…]
I have no problems with seeting a “key id” for each nodes and a “parent id” for every child node, this data coming from the backend in JSON or whatever.
Is there a way to let GoJS manage the location by itself ?
I ve tried to see what happen if I dont use “loc” and “dir” properties inside nodeDataArray. As expected the result was not really great :)
Can someone help me with that ? Thank you very much for your help !
Posts: 1
Participants: 1
