I'm just getting started with d3 and have what might be a simple question. I've been working on creating a graph using CSV data, but now I want to achieve the same result with array data instead.
somevariable = d3.csv(ds, function(da) {
da.forEach(function(d) {
d.date = f.parse(d.date);
d.value = +d.value;
});
do more functions ()....
});
I need to figure out how to parse array data and use it in my code, similar to how I've been doing with d3.csv
. I keep encountering an error when trying to parse d.date using the t.slice format, even though it works fine with CSV data. Any help on this issue would be greatly appreciated.