How do i add two different shapes to D3 forced directed graph based on shape field value?
I am newbie to D3. I am using force directed graph. I want to add two different type of shapes at node's places. My json is following: { "nodes":[ {"name":"00:00:00:00:00:00:00:01","group":0,"shape":1}, {"name":"00:00:00:00:00:00:00:02","group":1,"shape":1}, {"name":"00:00:00:00:00:00:00:03","group":2,"shape":1}, {"name":"00:00:00:00:00:00:00:11","group":0,"shape":0}, {"name":"00:00:00:00:00:00:00:21","group":1,"shape":0}, {"name":"00:00:00:00:00:00:00:31","group":2,"shape":0}, {"name":"00:00:00:00:00:00:00:32","group":2,"shape":0}, {"name":"00:00:00:00:00:00:00:12","group":0,"shape":0}, {