Cannot import data from csv file in d3
问题 I'm just learning d3, and I'm attempting to import data from a CSV file, but I keep getting the error "XMLHttpRequest cannot load file:///Users/Laura/Desktop/SampleECG.csv. Cross origin requests are only supported for HTTP. ". I've searched for how to fix this error and have ran it on a local web server, but I haven't found a solution that works for d3.v2.js. Here's a sample of the code: var Time = [] ECG1 = [] d3.csv("/Desktop/d3Project/Sample.csv", function(data) { Time = data.map(function