title: d3 piechart from local json variable
body: <p>I am trying to create a donut chart using json from a local variable (rather than an external file) I have seen <a href="https://stackoverflow.com/questions/10934853/d3-js-loading-json-without-a-http-get">this post</a> but am having a hard time adjusting my code in the same way</p>
  
  <p>In the above example</p>
  
  <pre><code>d3.json("flare.json", function(error, root) {
  </code></pre>
  
  <p>was replaced with</p>
  
  <pre><code>root = JSON.parse( myjson );
  </code></pre>
  
  <p>which does not fix my problem</p>
  
  <p>Check out the fiddle below where my data is loaded as variable titled myJson. How can I use this data for the donut?</p>
  
  <p><a href="http://jsfiddle.net/fg9MU/" rel="noreferrer">Fiddle</a></p>