17
rated 0 times
[
23]
[
6]
/ answers: 1 / hits: 30511
/ 6 Years ago, sun, april 1, 2018, 12:00:00
I'm trying to load data from a CSV file in D3; I have this code:
function update (error, data) {
if (error !== null) {
alert (Couldn't load the dataset!);
} else {
//do something
};
function changeData () {
d3.csv (data/dataset.csv, update);
}
If I use D3 v4 it works fine, but if I switch to v5 it doesn't work anymore.
Can someone explain to me how to modify the code to make it work with D3 v5?
More From » d3.js