Slide 29
Slide 29 text
attrs = {
class: "ball"
cx: "100px"
cy: "100px"
r: "10px"
stroke: "#f00"
"stroke-width": "100px"
fill: “#f00”
};
d3.select(“circle”).attr(attrs)
d3.select(“circle”)
.attr(“class”, “ball”)
.attr(“cx”, “100px”)
.attr(“cy”, “100px”)
.attr(“r”, “10px”)
.attr(“stroke”, “#f00”)
.attr(“stroke-width”, “100px”)
.attr(“fill”, “#f00”)
…