summaryrefslogtreecommitdiff
path: root/assets/scripts/d3/gender_terms_v0.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/scripts/d3/gender_terms_v0.js')
-rw-r--r--assets/scripts/d3/gender_terms_v0.js16
1 files changed, 0 insertions, 16 deletions
diff --git a/assets/scripts/d3/gender_terms_v0.js b/assets/scripts/d3/gender_terms_v0.js
deleted file mode 100644
index 32052ea..0000000
--- a/assets/scripts/d3/gender_terms_v0.js
+++ /dev/null
@@ -1,16 +0,0 @@
-(function() {
- d3.json("/assets/data/legislators-current.json", function(data) {
-
- d3.select("div#d3gender_terms_v0").selectAll("svg")
- .data(data.legislators)
- .enter()
- .append("svg")
- .attr("width", function(d) { return d.terms.length * 2; })
- .attr("height", function(d) { return d.terms.length * 2; })
- .append("circle")
- .attr("cx", function(d) { return d.terms.length; })
- .attr("cy", function(d) { return d.terms.length; })
- .attr("r", function(d) { return d.terms.length; })
- .style("fill", function(d) { return d.bio.gender === 'F'? "green" : "blue"; });
- });
-})();