First Commit
This commit is contained in:
commit
d861a1a02c
36 files changed
+2996
No files matched your search
@@ -0,0 +1,14 @@
|
||||
var data = [10, 20, 30, 40, 50];
|
||||
var svg = d3.select("body")
|
||||
.append("svg")
|
||||
.attr("width", 400)
|
||||
.attr("height", 200);
|
||||
svg.selectAll("rect")
|
||||
.data(data)
|
||||
.enter()
|
||||
.append("rect")
|
||||
.attr("x", function(d, i) { return i * 40; })
|
||||
.attr("y", function(d) { return 200 - d * 2; })
|
||||
.attr("width", 30)
|
||||
.attr("height", function(d) { return d * 2; })
|
||||
.attr("fill", "purple");
|
||||
Reference in new issue
Block a user