Skip to content

Instantly share code, notes, and snippets.

@emmanuelflores
Created November 18, 2015 07:03
Show Gist options
  • Save emmanuelflores/15fe0e43006a982ad3c3 to your computer and use it in GitHub Desktop.
Save emmanuelflores/15fe0e43006a982ad3c3 to your computer and use it in GitHub Desktop.
Test CSV d3.js
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hello D3</title>
<script type="text/javascript" src="d3/d3.min.js"></script>
</head>
<body>
<script type="text/javascript">
d3.csv("db.csv", function(data){
console.log(data);
data.forEach(function(d){
console.log(d.Brand);
})
})
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment