我是D3.js的新手,今天才开始学习
我看了甜甜圈示例,发现了这段代码
var svg = d3.select("body").append("svg")
.attr("width", width)
.attr("height", height)
.append("g")
.attr("transform", "translate(" + width / 2 + "," + height / 2 + ")");
我搜索了documentation,但不明白.append("g")
在添加什么。
这是特定于D3
的吗?
希望在这里获得指导。