This file contains hidden or 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
| /* | |
| As you read the data, use Object.keys() method to extract the column names. Might be useful for binding dropdowns. | |
| */ | |
| var columns=null; | |
| d3.csv('nutdata.csv').row(function(row){ | |
| if(columns==null){ | |
| columns=Object.keys(row); | |
| columns=columns.slice(2,48); //Optional - to remove columns you dont need | |
| } |
NewerOlder