Skip to content

Instantly share code, notes, and snippets.

@tce
Created January 22, 2013 22:31
Show Gist options
  • Save tce/4599269 to your computer and use it in GitHub Desktop.
Save tce/4599269 to your computer and use it in GitHub Desktop.
First Test
{"description":"First Test","endpoint":"","display":"svg","public":true,"require":[{"name":"Sigma","url":"http://www.sigmajs.org/js/sigma.min.js"}],"fileconfigs":{"inlet.js":{"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}},"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}
var sampleSVG = d3.select("#display")
.append("svg:svg")
.attr("width", 100)
.attr("height", 100);
sampleSVG.append("svg:circle")
.style("stroke", "gray")
.style("fill", "white")
.attr("r", 40)
.attr("cx", 50)
.attr("cy", 50)
.on("mouseover", function(){d3.select(this).style("fill", "aliceblue");})
.on("mouseout", function(){d3.select(this).style("fill", "white");});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment