title: Passing a CSV/TSV file to D3 using MVC
body: <p>I'm going through the tutorial at <a href="http://bost.ocks.org/mike/bar/2/" rel="nofollow">http://bost.ocks.org/mike/bar/2/</a></p>
  
  <p>The example code (below) shows a relative file name, <code>"data.tsv"</code>, of the data file to be passed to the D3 function.  However I need to pass this file via an MVC controller.  How can I do this?</p>
  
  <p><code>d3.tsv("data.tsv", type, function(error, data) {...</code></p>
  
  <p>Anything would be a big help, thanks.</p>
  
  <p>Update:</p>
  
  <p>The <code>"data.tsv" and "data.json"</code> routes were a bust.  I tried for two days to get the data sent from a MVC controller to the <code>d3</code>method to work, but I couldn't get it to bind properly.</p>
  
  <p>However I used <code>jQuery.ajax</code> to get the data (json) from the server and that worked first time.  :)</p>