Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- d3.csv("file0.csv").then((data0) => {
- console.log(data0);
- d3.csv("file1.csv").then((data1) => {
- console.log(data1);
- d3.csv("file2.csv").then((data2) => {
- console.log(data2);
- })
- })
- }).catch(function(error) {
- // handle any error that may occur from three calls.
- });
- // Alternatively you can use await.
- const data0 = await d3.csv("file0.csv");
- const data1 = await d3.csv("file1.csv");
- const data2 = await d3.csv("file2.csv");
- console.log(data0);
- console.log(data1);
- console.log(data2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement