[Vuejs]-How to load csv file with vue.js and d3.js

0👍

you can not declare data variable outside the data function. So bring that variable in data function, change its name and then make a function and use this line d3.csvParse(dataset); there, assign it to the variable this.dataset. Call that function in the mounted hook and then console.log this.dataset variable.

Leave a comment