= svg.selectAll(«circle») .data(data) .enter() .append(«circle»); var circleAttributes = circles .attr(«cx», function(d){ return d.cx) .attr(«cy», function(d){ return d.cy) .attr(«r», function(d){return d.r;}) .style(«fill, function(d){return d.color}); data = [{r:40, color: «purple», cx: 50, cy: 50}] var svg = d3.select(«body»).append(«svg») .attr(«width», 600) .attr(«height, 100) Enrich the data Mapping of data lundi 7 octobre 13