title: Create Pie Charts from JSON with multiple column
body: <p>I want to create a pie chart (using D3.js) from my JSON data. I know it is possible to create it from multiple rows and with only two columns. For example, if JSON data is something like this</p>
  
  <pre><code>    [{"name":"Kamran","count":"4"},{"name":"Krishana","count":"6"}]  
  </code></pre>
  
  <p>I found this example for data above <a href="https://jsfiddle.net/canvasjs/sv6j8nh4/" rel="nofollow noreferrer">https://jsfiddle.net/canvasjs/sv6j8nh4/</a></p>
  
  <p>But my data contains a single row with multiple columns for example </p>
  
  <pre><code>    [{"name":"Task1","Agree":"4","Disagree":"22","Inbetween":"4"}]
  </code></pre>
  
  <p>How can I create a pie chart with this type of data?</p>