title: D3 Stacked Chart with array or JSON data
body: <p>I want to create a Stacked bar chart like <a href="http://bl.ocks.org/mbostock/3886208" rel="nofollow noreferrer">http://bl.ocks.org/mbostock/3886208</a> . But I don't want to use CSV file.</p>
  
  <p>How can I create Stacked chart using array or JSON data?</p>
  
  <p>In csv we are using like this :</p>
  
  <pre><code>State,Post,Comment    
  AL,310504,552339
  AK,52083,85640
  </code></pre>
  
  <p>How can I define data in array or json like</p>
  
  <pre><code>var data = []
  </code></pre>