When trying to create a fiddle, I encountered an issue with plotting a line chart using data from a .json
file. The error message displayed was:
Uncaught SyntaxError: Unexpected token o
The chart can be successfully plotted if the JSON is provided externally by utilizing d3.json()
.
How can I ensure that my fiddle works as intended?