Skip to content

Instantly share code, notes, and snippets.

@hiiamyes
Last active August 29, 2015 14:22
Show Gist options
  • Save hiiamyes/126f79fbe194f7d1d40e to your computer and use it in GitHub Desktop.
Save hiiamyes/126f79fbe194f7d1d40e to your computer and use it in GitHub Desktop.
D3.js - part 1
data = ['h', 'e', 'l', 'l', 'o', 'w', 'o', 'r', 'l', 'd']
d3.select 'body'
.selectAll 'p'
.data data
.enter()
.append 'p'
.text (d) -> d
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