Last active
February 23, 2016 16:05
-
-
Save wd15/e24ae41d07d5354bd8d7 to your computer and use it in GitHub Desktop.
Trivial D3 example using coffeescript - see https://rawgit.com/wd15/e24ae41d07d5354bd8d7/raw/
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
| theData = [ 1, 2, 3 ] | |
| d3.select("body").selectAll("p") | |
| .data(theData) | |
| .enter() | |
| .append("p") | |
| .text((d) -> d) |
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 http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
| <title>Trivial example</title> | |
| <script src="//cdn.jsdelivr.net/g/d3js,coffeescript"></script> | |
| <script type="text/coffeescript" src="d3test.coffee"></script> | |
| </head> | |
| <body> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment