In d3.js the csvParse function works like:
d3.csvParse("foo,bar\n1,2\n2,3");
// [{foo: "1", bar: "2"}, {foo: "2", bar:"3"}, columns: ["foo", "bar"]]
Q1: What the structure name of the returned data? especially the "columns" properties?
Outside d3.js, if I do
var data = [{foo: "1", bar: "2"}, {foo: "2", bar:"3"}, columns: ["foo", "bar"]]
//uncaught syntaxerror unexpected token ':'
Q2: Why is the error? How to get around?