title: Display data of an associative array in a table with d3.js
body: <p>I am trying to display data of an an associative array in a table with d3.js 
  But i can't get the individual values in the table.</p>
  
  <p>This is part of my array:</p>
  
  <pre><code>    var twitterDays = 
    [ 
      { 
        0: 
        {
          0: 0,
          1: 0,
          2: 0,
          3: 0,
          4: 0,
          5: 0,
          6: 0,
          7: 0,
          8: 0,
          9: 0,
          10: 0,
          11: 0,
          12: 0,
          13: 0,
          14: 0,
          15: 0,
          16: 0,
          17: 0,
          18: 0,
          19: 0,
          20: 0,
          21: 0,
          22: 0,
          23: 0,
          "total": 0
        },
        "day": "monday"
      },
      { 
        1: 
        {
          0: 0,
          1: 0,
          2: 0,
          3: 0,
          4: 0,
          5: 0,
          6: 0,
          7: 0,
          8: 0,
          9: 0,
          10: 0,
          11: 0,
          12: 0,
          13: 0,
          14: 0,
          15: 0,
          16: 0,
          17: 0,
          18: 0,
          19: 0,
          20: 0,
          21: 0,
          22: 0,
          23: 0,
          "total": 0
        },
        "day": "tueday"
      }, etc etc
  </code></pre>
  
  <p>With d3.js I'am adding values to the different keys. </p>
  
  <p>This is how I make the table:</p>
  
  <pre><code>var table = d3.select("#datavis").append("table").attr("class", "twitterTable");
  var tbody = table.append("tbody");
  
  
  var rows = tbody.selectAll("tr")
        .data(twitterDays)
          .enter()
          .append("tr").attr("class", function(d) { return d["day"] });
  
  var monday = tbody.select(".monday")
          .data(d3.values(twitterDays[0][0]))
            .enter()
            .append("td")
            .text(d3.values(twitterDays[0][0]));
  </code></pre>
  
  <p>This is the part what needs to be changed i think: <code>.text(d3.values(twitterDays[0][0]));</code></p>
  
  <p>The problem is that i want the indivitual values (1 in each)in the "td" that is made, but instead i get all the values of all the values in each "td"..</p>
  
  <p>This is what i get:</p>
  
  <pre><code>&lt;td&gt;39,25,20,11,9,8,2,3,9,36,36,48,57,58,51,50,75,63,67,58,62,74,67,64,992&lt;/td&gt;
  &lt;td&gt;39,25,20,11,9,8,2,3,9,36,36,48,57,58,51,50,75,63,67,58,62,74,67,64,992&lt;/td&gt; 
  &lt;td&gt;39,25,20,11,9,8,2,3,9,36,36,48,57,58,51,50,75,63,67,58,62,74,67,64,992&lt;/td&gt; 
  &lt;td&gt;39,25,20,11,9,8,2,3,9,36,36,48,57,58,51,50,75,63,67,58,62,74,67,64,992&lt;/td&gt; 
  &lt;td&gt;39,25,20,11,9,8,2,3,9,36,36,48,57,58,51,50,75,63,67,58,62,74,67,64,992&lt;/td&gt; 
  &lt;td&gt;39,25,20,11,9,8,2,3,9,36,36,48,57,58,51,50,75,63,67,58,62,74,67,64,992&lt;/td&gt; 
  &lt;td&gt;39,25,20,11,9,8,2,3,9,36,36,48,57,58,51,50,75,63,67,58,62,74,67,64,992&lt;/td&gt; 
  &lt;td&gt;39,25,20,11,9,8,2,3,9,36,36,48,57,58,51,50,75,63,67,58,62,74,67,64,992&lt;/td&gt; 
  &lt;td&gt;39,25,20,11,9,8,2,3,9,36,36,48,57,58,51,50,75,63,67,58,62,74,67,64,992&lt;/td&gt; 
  &lt;td&gt;39,25,20,11,9,8,2,3,9,36,36,48,57,58,51,50,75,63,67,58,62,74,67,64,992&lt;/td&gt; 
  &lt;td&gt;39,25,20,11,9,8,2,3,9,36,36,48,57,58,51,50,75,63,67,58,62,74,67,64,992&lt;/td&gt; 
  &lt;td&gt;39,25,20,11,9,8,2,3,9,36,36,48,57,58,51,50,75,63,67,58,62,74,67,64,992&lt;/td&gt; 
  &lt;td&gt;39,25,20,11,9,8,2,3,9,36,36,48,57,58,51,50,75,63,67,58,62,74,67,64,992&lt;/td&gt; 
  &lt;td&gt;39,25,20,11,9,8,2,3,9,36,36,48,57,58,51,50,75,63,67,58,62,74,67,64,992&lt;/td&gt;
  etc etc
  </code></pre>
  
  <p>i want it like so:</p>
  
  <pre><code>&lt;td&gt;39&lt;/td&gt;
  &lt;td&gt;25&lt;/td&gt;
  &lt;td&gt;20&lt;/td&gt;
  &lt;td&gt;11&lt;/td&gt;
  &lt;td&gt;9&lt;/td&gt;
  &lt;td&gt;8&lt;/td&gt;
  &lt;td&gt;2&lt;/td&gt;
  etc etc  
  </code></pre>