Skip to content

Instantly share code, notes, and snippets.

@pennwu1
Last active July 27, 2017 20:52
Show Gist options
  • Save pennwu1/9bfa986a4c030859baa5330e365bbac7 to your computer and use it in GitHub Desktop.
Save pennwu1/9bfa986a4c030859baa5330e365bbac7 to your computer and use it in GitHub Desktop.
Static SVG Sample
license: mit
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="https://d3js.org/d3.v4.min.js"></script>
<style>
body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0; }
</style>
</head>
<body>
<svg width="200" height="200">
<circle cx="20" cy="20" r="20" fill="green" />
<rect x="110" y="110" height="30" width="30" fill="blue" />
<circle cx="70" cy="70" r="20" fill="purple" />
<rect x="160" y="160" height="30" width="30" fill="red" />
</svg>
<script>
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment