-1

I'm creating a diagram with D3 and JSON which is based on this:

http://bl.ocks.org/mbostock/4063550

The difference is, I also want to have different shapes for nodes (not just circles, but for example, trianges.)

I have a attribute in the JSON file that says something like "shape":"triangle".

How do I update that index.html file so that I can get different shapes to be displayed?

Really urgently need assistance...any help/advice really appreciated.

4

2 に答える 2