d3.js - Accessing a csv file with D3 inside meteor -
i had rendered html table displaying info csv file using d3, when moved same code meteor project, i'm having problems. info object beingness passed callback d3.csv() picking html file 1 line @ time instead of csv data. happens when trying run in meteor.
my code set this:
if (meteor.isclient) { d3.csv("data/dataset.csv", function(data) { console.dir(data); // stuff }); } if (meteor.isserver) { // other stuff }
any ideas on why might happening?
(simply copying ashkat's comment per @booyaa's request in comments:)
try placing csv file in public/data/data.csv
csv d3.js meteor
No comments:
Post a Comment