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.
- [Vuejs]-VueJS : How to update value inside watcher without affecting the watcher
- [Vuejs]-Vuelidate never v.dirty always true even if all requirements are met
Source:stackexchange.com