Built with blockbuilder.org
Last active
April 28, 2019 17:07
-
-
Save sampath-karupakula/3c259424c44ab11a554b10e6c422b996 to your computer and use it in GitHub Desktop.
fresh block
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
license: mit |
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
label | population | country | x | y | |
---|---|---|---|---|---|
San Francisco | 750000 | USA | 122 | -37 | |
Fresno | 500000 | USA | 119 | -36 | |
Lahore | 12500000 | Pakistan | 74 | 31 | |
Karachi | 13000000 | Pakistan | 67 | 24 | |
Rome | 2500000 | Italy | 12 | 41 | |
Naples | 1000000 | Italy | 14 | 40 | |
Rio | 12300000 | Brazil | -43 | -22 | |
Sao Paolo | 12300000 | Brazil | -46 | -23 |
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> | |
<head> | |
<meta charset="utf-8"> | |
<script src="https://d3js.org/d3.v4.min.js"></script> | |
<style> | |
body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0; } | |
</style> | |
</head> | |
<body> | |
<script> | |
d3.csv("cities.csv", data=> console.log(data)); | |
d3.json("tweets.json", data=> console.log(data)); | |
</script> | |
</body> |
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
{ | |
"tweets": [ | |
{"user": "Al", "content": "I really love seafood.", | |
"timestamp": " Mon Dec 23 2013 21:30 GMT-0800 (PST)", | |
"retweets": ["Raj","Pris","Roy"], "favorites": ["Sam"]}, | |
{"user": "Al", "content": "I take that back, this doesn't taste so good.", | |
"timestamp": "Mon Dec 23 2013 21:55 GMT-0800 (PST)", | |
"retweets": ["Roy"], "favorites": []}, | |
{"user": "Al", | |
"content": "From now on, I'm only eating cheese sandwiches.", | |
"timestamp": "Mon Dec 23 2013 22:22 GMT-0800 (PST)", | |
"retweets": [],"favorites": ["Roy","Sam"]}, | |
{"user": "Roy", "content": "Great workout!", | |
"timestamp": " Mon Dec 23 2013 7:20 GMT-0800 (PST)", | |
"retweets": [],"favorites": []}, | |
{"user": "Roy", "content": "Spectacular oatmeal!", | |
"timestamp": " Mon Dec 23 2013 7:23 GMT-0800 (PST)", | |
"retweets": [],"favorites": []}, | |
{"user": "Roy", "content": "Amazing traffic!", | |
"timestamp": " Mon Dec 23 2013 7:47 GMT-0800 (PST)", | |
"retweets": [],"favorites": []}, | |
{"user": "Roy", "content": "Just got a ticket for texting and driving!", | |
"timestamp": " Mon Dec 23 2013 8:05 GMT-0800 (PST)", | |
"retweets": [],"favorites": ["Sam", "Sally", "Pris"]}, | |
{"user": "Pris", "content": "Going to have some boiled eggs.", | |
"timestamp": " Mon Dec 23 2013 18:23 GMT-0800 (PST)", | |
"retweets": [],"favorites": ["Sally"]}, | |
{"user": "Pris", "content": "Maybe practice some gymnastics.", | |
"timestamp": " Mon Dec 23 2013 19:47 GMT-0800 (PST)", | |
"retweets": [],"favorites": ["Sally"]}, | |
{"user": "Sam", "content": "@Roy Let's get lunch", | |
"timestamp": " Mon Dec 23 2013 11:05 GMT-0800 (PST)", | |
"retweets": ["Pris"], "favorites": ["Sally", "Pris"]} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment