title: using datatable with amCharts
body: <p>I am migrating google charts to amCharts. I am using a data array like this:</p>
  
  <pre><code>[ 
    [CITY, SUM],
    [A,    1500],
    [B,    1470],
    [C,    1920]
  ]
  </code></pre>
  
  <p>I can use this in google charts. So this solution is very flexible and dynamic. And I do not set any value field ot category field like amCharts.</p>
  
  <p>But I see that amCharts data should be json object array.</p>
  
  <pre><code>[ 
    {CITY: A,   SUM: 1500},
    {CITY: B,   SUM: 1470},
    {CITY: C,   SUM: 1920}
  ]
  </code></pre>
  
  <p>So I need to know <code>value</code> ad <code>category</code> propery for every dataset.</p>
  
  <pre><code>var chart = AmCharts.makeChart("chartdiv", {
    "categoryField": "CITY",
    "graphs": [{
      "type": "column",
      "valueField": "SUM"
    }]
  }
  </code></pre>
  
  <p>SO this is not very flexible. </p>
  
  <p>Is there any solution to get;</p>
  
  <ul>
  <li>first item of json object is categoryField</li>
  <li>second item of solution is valueField</li>
  </ul>
  
  <p>Or using google datatable data in amCharts.</p>