This comment has been minimized.

Hello. I am new to d3 (thank you-it's amazing!), and am using your examples to learn. I have re-created this graph, but am trying to get the names to show up as labels on the graph. i thought that the code:

node.append("title")
.text(function(d) { return d.name; });

would append the name of each row to the node, but it doesn't seem to. If this code is not to append the title then what is it's purpose? also, if this code isn't meant to add the label to each node, can you point me in the direction of some code that would do the trick?

Hello. I am new to d3 (thank you-it's amazing!), and am using your examples to learn. I have re-created this graph, but am trying to get the names to show up as labels on the graph. i thought that the code:

node.append("title")
.text(function(d) { return d.name; });

would append the name of each row to the node, but it doesn't seem to. If this code is not to append the title then what is it's purpose? also, if this code isn't meant to add the label to each node, can you point me in the direction of some code that would do the trick?

thank you!

This comment has been minimized.

Hello and thank you very much for your example! I am trying to do the same kind of graph to put it on a website and let the people interact with the information. I guess that you got the original information from a Neo4j database, is that right? In that case, the question is where did you get the json file from? Is it necessary?

Hello and thank you very much for your example! I am trying to do the same kind of graph to put it on a website and let the people interact with the information. I guess that you got the original information from a Neo4j database, is that right? In that case, the question is where did you get the json file from? Is it necessary?

This comment has been minimized.

I'm reusing the code and have not been able to successfully modify it to implement this requirement: "The 'clicked' node in the graph moves to the center of the force-directed graph and the graph is re-drawn!"

Can you help me point to some example that does this. I'd be very thankful.

I'm reusing the code and have not been able to successfully modify it to implement this requirement: "The 'clicked' node in the graph moves to the center of the force-directed graph and the graph is re-drawn!"

Can you help me point to some example that does this. I'd be very thankful.