title: d3.csv unable to go up one directory
body: <p>I am trying to reference a file located in the parent folder using d3.csv and I am not able to find the correct syntax.</p>
  
  <p>My folder structure is as follows:</p>
  
  <pre><code>root
  └── js
      ├── data.csv
      └── myGraph.js
  </code></pre>
  
  <p>Inside the js folder I have myGraph.js. In this file I have the following piece of code:</p>
  
  <pre><code>d3.csv("data.csv", function(error, data) {
     data.forEach(function(d) {
     d.date = parseDate(d.date);
     d.close = +d.close;
  });
  </code></pre>
  
  <p>If I place my data.csv inside the js folder everything works fine. However, if I move the data.csv file up in the root folder </p>
  
  <pre><code>root
  ├── data.csv
  └── js       
      └── myGraph.js
  </code></pre>
  
  <p>and change the code to this then it stops working:</p>
  
  <pre><code>d3.csv("/../data.csv", function(error, data)
  </code></pre>
  
  <p>I have also tried:</p>
  
  <pre><code>d3.csv("../data.csv", function(error, data)
  </code></pre>
  
  <p>Does anyone know what I am doing wrong and what the correct syntax is? Many thanks.</p>