I am a new beginner to JavaScript and D3. I just want to import the csv data file into the D3 using d3.csv but I get the following error. Anyone can help me with this?
<!DOCTYPE html>
<html>
<head>
<title>Learning JavaScript</title>
<script src = "https://d3js.org/d3.v3.min.js"></script>
</head>
<body>
<script>
d3.csv("data.csv", function(d){
console.log(d);
})
</script>
</body>
</html>