javascript - d3js use a function inside d3.select(...) -


i new d3 , trying attribute array of objects.

the issue having .attr("y", d3.select(function(d, i){ return data[i].id;}).attr("y")) gives me error. want id array of objects. know specific id exists because trying add text rect , object created. there way can id array of objects , attribute of y?


Comments