title: Create Pie Chart using Jq plot with JSON
body: <p>I use the following Function for create chart it was working Fine.</p>
  
  <pre><code>$(document).ready(function(){
    var data = [
      ['Heavy Industry', 12],['Retail', 9], ['Light Industry', 14], 
      ['Out of home', 16],['Commuting', 7], ['Orientation', 9]
    ];
    var plot1 = jQuery.jqplot ('chart1', [data], 
      { 
        seriesDefaults: {
          renderer: jQuery.jqplot.PieRenderer, 
          rendererOptions: {
  
            showDataLabels: true
          }
        }, 
        legend: { show:true, location: 'e' }
      }
    );
  });
  </code></pre>
  
  <p>And my problem is if I get the JSON in another array and i use that array into the pie chart it will not work.Which means...</p>
  
  <pre><code>$(document).ready(function(){
   var data1= new Array();
    data1=[['Heavy Industry', 12],['Retail', 9], ['Light Industry', 14], 
      ['Out of home', 16],['Commuting', 7], ['Orientation', 9]];
  
    var plot1 = jQuery.jqplot ('chart1', [data1], 
      { 
        seriesDefaults: {
          renderer: jQuery.jqplot.PieRenderer, 
          rendererOptions: {
  
            showDataLabels: true
          }
        }, 
        legend: { show:true, location: 'e' }
      }
    );
  });
  </code></pre>