Whenever I attempt to read a csv file using JavaScript with the d3 Library, I encounter an issue.
The problem I face is:
Uncaught NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load
This is the code snippet that triggers the error:
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<body>
<script src="http://d3js.org/d3.v3.js"></script>
<script>
d3.csv("file:///C:/Users/xxxx/Desktop/Nuova/food.csv", function(data) {
console.log(data);
});
</script>
</body>
</html>