Last active
August 29, 2015 14:22
-
-
Save hiiamyes/126f79fbe194f7d1d40e to your computer and use it in GitHub Desktop.
D3.js - part 1
This file contains 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
data = ['h', 'e', 'l', 'l', 'o', 'w', 'o', 'r', 'l', 'd'] | |
d3.select 'body' | |
.selectAll 'p' | |
.data data | |
.enter() | |
.append 'p' | |
.text (d) -> d |
This file contains 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 | |
//- D3.js | |
script(src='https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js', charset='utf-8') | |
body | |
script(src='index.js') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment