I am currently attempting to generate a treemap visualization utilizing data sourced from a .json
file. My approach involves employing d3 and Vue to assist in the implementation process. However, upon attempting to import my data via the d3.json()
method and logging it to the console, I encounter the following error:
Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0
d3.json('./warehouses').then(function(error,data) {
data = data.concat(json)
render(data)
console.log(data)
})