Created
July 14, 2014 16:09
-
-
Save docsteveharris/499c5d5f460c58a1210d to your computer and use it in GitHub Desktop.
Load data in d3
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
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