Skip to content

Instantly share code, notes, and snippets.

@majomo
Last active September 1, 2015 18:50
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 majomo/e381989a9ca412aad4be to your computer and use it in GitHub Desktop.
Save majomo/e381989a9ca412aad4be to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Loading CSV Data with D3</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script>
</head>
<body>
<p>Nothing to see here. Take a peek at the console.</p>
<script type="text/javascript">
//Load in contents of CSV file
d3.csv("Core_Housing_Need_data.csv", function(data) {
//Now CSV contents have been transformed into
//an array of JSON objects.
//Log 'data' to the console, for verification.
console.log(data);
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment