chapter-2 d3 svg shape
style()
d3.select('body')
.append('p')
.style('color','red')
.text("Hi,what's up?");创建画布
var canvas = d3.select('body')
.append('svg')
.attr('width',500)
.attr('height',500);节点属性

circle 属性
rectangle 属性
line 属性
Last updated