title: Rendering a google chart using datastore data
body: <p>I am struggling to use data stored in datastore to render a google chart. At the moment I have queried the data model:</p>
  
  <pre><code>results = MyDataModel.query().fetch() 
  </code></pre>
  
  <p>It is at this stage I am unsure what to do. For example, is it best to create a list in python like:</p>
  
  <pre><code>result_list = []
  for result in results:
      result_list.append([result.employee, result.salary])
  </code></pre>
  
  <p>and then using Jinja2 templates pass it into an array table:</p>
  
  <pre><code>var data = google.visualization.arrayToDataTable([
     ['Employee Name', 'Salary'],
     {% for result in result_list %}
      {{result | safe}}
     {% endfor %},
    false);
  </code></pre>
  
  <p>Or is it best to dynamically add row data into a DataTable or is it best to query the data store directly?</p>
  
  <p>Which ever way I try I am struggling to render anything at all. Any help would be appreciated.</p>