Skip to content

Instantly share code, notes, and snippets.

@finbarrocallaghan
Created September 14, 2012 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save finbarrocallaghan/3722370 to your computer and use it in GitHub Desktop.
Save finbarrocallaghan/3722370 to your computer and use it in GitHub Desktop.
reading from a csv?
[15:43:47.273] GET http://local_ip:8089/temp.csv [HTTP/1.0 200 OK 2ms]
[15:43:47.219] TypeError: data is null @ file:///local/user/tutorial/simple.js:2
d3.csv('http://local_ip:8089/temp.csv', function(data) {
data.forEach(function(d){
console.log(d)
d.index +d.index;
})
});
index size ratio
1 475 105
2 221 109
3 141 109
4 138 110
5 133 114
6 129 114
7 128 116
8 124 117
9 123 121
10 121 121
11 121 121
12 121 123
13 117 124
14 116 128
15 114 129
16 114 133
17 110 138
18 109 141
19 109 221
20 105 475
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment