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
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…