Skip to content

Instantly share code, notes, and snippets.

@jmuyskens
Last active July 14, 2017 04:28
Show Gist options
  • Save jmuyskens/fbd18e5da34a79bc75e4251eaaf32075 to your computer and use it in GitHub Desktop.
Save jmuyskens/fbd18e5da34a79bc75e4251eaaf32075 to your computer and use it in GitHub Desktop.
data-storytelling-d3-workshop-2
license: mit
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="https://d3js.org/d3.v4.min.js"></script>
<style>
svg {
background: silver;
}
body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0; }
</style>
</head>
<body>
<svg width=100 height=100>
<rect width=60 height=30 x=20 y=10 fill=white stroke=black></rect>
<circle r=20 cx=50 cy=70 fill=white stroke=black></circle>
<text dx=50 dy=50 text-anchor=middle>Hello, world</text>
<path d="M 0 0 L 100 100 Z" stroke=black></path>
</svg>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment