arrays - Upload csv file using javascript and d3 -
i new javascript , d3 , cannot figure out how allow users upload csv file , displaying scatterplot using d3. using tag allow user select file. not sure on next step should be. there way read csv file , store it's contents in d3 array , displaying graph using array ??
thanks in advance
look d3.csv
function (https://github.com/mbostock/d3/wiki/csv). here simple example
//load example.csv file d3.csv('example.csv', function(data){ //this object, contents of should //match example.csv input file. console.log(data); // more stuff 'data' related // drawing scatterplots. // //----------------------- }, function(error, rows) { console.log(rows); }; );
there number of examples online showing how go data array scatterplot...it's matter of modifying examples fit specific data format.
Comments
Post a Comment