initial
This commit is contained in:
17
src/js/single.js
Normal file
17
src/js/single.js
Normal file
@@ -0,0 +1,17 @@
|
||||
function makeDemo1() {
|
||||
d3.csv("data/examples-simple.csv").then(function (data) {
|
||||
d3.select("svg")
|
||||
.selectAll("circle")
|
||||
.data(data)
|
||||
.enter()
|
||||
.append("circle")
|
||||
.attr("r", 5)
|
||||
.attr("fill", "red")
|
||||
.attr("cx", function (d) {
|
||||
return d["x"];
|
||||
})
|
||||
.attr("cy", function (d) {
|
||||
return d["y"];
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user