Created
November 16, 2015 19:35
-
-
Save d3byex/bd3097caf250a9c3a1f1 to your computer and use it in GitHub Desktop.
D3byEX 3.18: Scale
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="D3byEX 3.18"> | |
</head> | |
<body> | |
<script src="http://d3js.org/d3.v3.min.js" charset=" utf-8"></script> | |
<svg width="720" height="200"> | |
<line x1="0" y1="150" x2="0" y2="0" stroke="black" /> | |
<line x1="0" y1="0" x2="150" y2="0" stroke="black" /> | |
<rect x="0" y="0" width="100" height="100" fill="blue"/> | |
<rect x="0" y="0" width="100" height="100" fill="red" | |
transform="scale(0.5)" /> | |
</svg> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment