Created
November 21, 2012 21:08
-
-
Save ejfox/4127736 to your computer and use it in GitHub Desktop.
Test Snippet
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
| # This is the name of this snippet. Always just the first line. | |
| And this is the description. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum. |
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
| var svg = tributary.g; //d3.select("svg"); | |
| svg.append("text") | |
| .text("SVG!") | |
| .attr({ | |
| x: 10, | |
| y: 200, | |
| }); | |
| svg.append("circle") | |
| .attr({ | |
| cx: 216, | |
| cy: 100, | |
| r: 100, | |
| fill: "#C02AB4" | |
| }) | |
| svg.append("rect") | |
| .attr({ | |
| x: 263, | |
| y: 65, | |
| width: 100, | |
| height: 100, | |
| fill: "#DA0DC1" | |
| }); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment