Documentation at Data Visualization with D3.js - Week 1
Built with blockbuilder.org
license: mit |
Documentation at Data Visualization with D3.js - Week 1
Built with blockbuilder.org
<!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; } | |
svg { | |
border: solid 1px #808080; | |
} | |
circle { | |
fill: pink; | |
} | |
</style> | |
</head> | |
<body> | |
<svg width="960" height="500"> | |
<g transform="translate(10, 10) scale(1.5)"> | |
<!-- <g transform="scale(1.5) translate(10, 100)"> --> | |
<circle cx=200 cy=250 r = 25 /> | |
<circle cx=200 cy=100 r=30 /> | |
<circle cx=500 cy=200 r=20 /> | |
</g> | |
</svg> | |
</body> |