0
工作,我想follow a d3 tutorial和I've created a JSFiddle以下代碼無法獲得D3 SVG教程中的jsfiddle
var dataset = [1,2,3,4,5];
var sampleSVG = d3.select("#viz")
.append("svg")
.attr("width", 400)
.attr("height", 75);
sampleSVG.selectAll("circle")
.data(dataset)
.enter().append("circle")
.style("stroke", "gray")
.style("fill", "red")
.attr("height", 40)
.attr("width", 75)
.attr("x", function(d, i){return i*80})
.attr("y", 20);
但是,我看到生成的圈子裏的SVG,但我不能看到他們對屏幕。任何人都可以看到我失蹤的東西嗎?