Skip to content

Instantly share code, notes, and snippets.

@d3byex
Created November 16, 2015 01:56
Show Gist options
  • Select an option

  • Save d3byex/ea5c6bd1625e0acaf037 to your computer and use it in GitHub Desktop.

Select an option

Save d3byex/ea5c6bd1625e0acaf037 to your computer and use it in GitHub Desktop.
D3byEX 3.3
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="D3byEX 3.3">
</head>
<body>
<script src="http://d3js.org/d3.v3.min.js" charset=" utf-8"></script>
<svg width="720" height="120">
<circle cx="40" cy="20" r="10" style="fill:red"></circle>
<circle cx="80" cy="40" r="15" style="fill:green"></circle>
<circle cx="120" cy="60" r="20" style="fill:blue"></circle>
</svg>
<script>
d3.selectAll('circle').style('fill', 'teal');
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment