I am trying some basic d3 and i have been trying to get the attributes of each of the rect
using d3 but I am not able to get anything.
When i try d3.selectAll("rect")
, I get
How do can i access attributes of rect
by using something like d3.selectAll("rect").select("part1").attr(...)
or something similar? I want to access different attributes of all rect
.