title: Displaying graphs/charts in Django
body: <p>I'm making a report app in Django that involves plenty of graphs and charts. </p>
  
  <p>Is there an easy graphing library/module that allows me to achieve this workflow:</p>
  
  <ol>
  <li>Execute my SQL queries </li>
  <li>Parse the returned data to the graphing library/module</li>
  <li>Graphing library/module manipulates the data into a chart/graph which I can output to a Django template easily.</li>
  </ol>
  
  <p>I've spent the last couple of days playing around with Matplotlib and Django. There are seemingly only a few ways to get the graphs to render in Django.</p>
  
  <ol>
  <li>Use 2 views, one to render the PNG and the other one to output the HTML with the img src pointing to the first view. <a href="http://groups.google.com/group/django-users/browse_thread/thread/a574f3444c0bc85a/9b6952e009cba358#9b6952e009cba358" rel="noreferrer">Link</a></li>
  <li><a href="https://stackoverflow.com/questions/5538715/plot-a-graph-in-the-html-file-using-django">Data URI's</a></li>
  <li>Write the image to file and then call it with the view</li>
  </ol>
  
  <p>Is there anyway I can do this more easily? </p>
  
  <p>Thanks</p>