[ Launch: imported SVG, filtering selectAll ] 5744054 by enjalot
[ Launch: imported SVG ] 5729452 by georules
-
-
Save enjalot/5744054 to your computer and use it in GitHub Desktop.
imported SVG, filtering selectAll
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"description":"imported SVG, filtering selectAll","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"something.svg":{"default":true,"vim":false,"emacs":false,"fontSize":12},"_.md":{"default":true,"vim":false,"emacs":false,"fontSize":12},"config.json":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"fullscreen":false,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"period","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"thumbnail":"http://i.imgur.com/31VtCMw.png"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var svg = d3.select("svg") | |
//console.log(svg); | |
text = d3.select("text"); | |
text.text("geo") | |
e = svg.selectAll("ellipse") | |
.transition().duration(3000) | |
.attr("ry","100") | |
//console.log(e) | |
e1 = e.filter(function(d,i) {return i==1;}); | |
console.log("HI?") | |
e1.transition() | |
.duration(5000) | |
.attr("cx","500") | |
.attr("cy","500") | |
.attr("fill","black") | |
.attr("ry","500") | |
.attr("rx","300") | |
// add / remove this to see reevalutaion break | |
.each("end", function(d) { | |
d3.select(this).transition().duration(2000) | |
.attr("fill","red"); | |
}) | |
//console.log(e1); | |
console.log("?") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment