Skip to content

Instantly share code, notes, and snippets.

@d3byex
Last active November 20, 2015 01:15
Show Gist options
  • Save d3byex/c72d0832e7f465c3afb7 to your computer and use it in GitHub Desktop.
Save d3byex/c72d0832e7f465c3afb7 to your computer and use it in GitHub Desktop.
D3byEX 5.1: Loading JSON
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="D3byEX 5.1" />
<meta charset="utf-8">
</head>
<body>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script>
var url = "https://gist.githubusercontent.com/d3byex/e5ce6526ba2208014379/raw/8fefb14cc18f0440dc00248f23cbf6aec80dcc13/walking_dead_s5.json";
d3.json(url, function (error, data) {
console.log(data[0]);
});
console.log("Data in D3.js is loaded asynchronously");
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment