Skip to content

Instantly share code, notes, and snippets.

@docsteveharris
Created July 14, 2014 16:09
Show Gist options
  • Save docsteveharris/499c5d5f460c58a1210d to your computer and use it in GitHub Desktop.
Save docsteveharris/499c5d5f460c58a1210d to your computer and use it in GitHub Desktop.
Load data in d3
var dataset; // declare a global var to hold data
d3.csv("data/univar.csv", function(error, data) {
if(error) {
console.log(error);
}
else {
console.log(data);
}
// these functions now depend on the data
dataset = data;
// generate_dviz();
// hideLoadingMsg();
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment