Skip to content

Instantly share code, notes, and snippets.

@cieloazul310
Last active February 28, 2017 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cieloazul310/32360c3f1c2231a9ec663f60a48962c3 to your computer and use it in GitHub Desktop.
Save cieloazul310/32360c3f1c2231a9ec663f60a48962c3 to your computer and use it in GitHub Desktop.
Gist Test
license: gpl-3.0

cieloazul310's gist & bl.ocks.org test page

<!DOCTYPE html>
<meta charset="utf-8">
<svg></svg>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script>
var svg = d3.select("svg");
var size = {width: 480, height: 320};
svg.attr("width", size.width)
.attr("height", size.height);
var circle = svg.append("circle")
.attr("cx", size.width / 2)
.attr("cy", size.height / 2)
.attr("r", size.height / 2)
.attr("fill", "darkred");
circle.transition().delay(1000).duration(1000)
.attr("fill", "blue");
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment