title: How can I display a pygooglechart in a Django view?
body: <p>I'm currently playing around with <a href="http://pygooglechart.slowchop.com/" rel="nofollow">pygooglechart</a>.
  It's a python wrapper for Google charts.</p>
  
  <p>In my views.py I have the following:</p>
  
  <pre><code>from pygooglechart import PieChart3D
  
  def pytest(request):
       chart = PieChart3D(250, 100)
       chart.add_data([20, 10])
       chart.set_pie_labels(['Hello', 'World'])
  </code></pre>
  
  <p>In my urls.py I have linked up the view:</p>
  
  <pre><code>urlpatterns = patterns('',
      (r'^admin/', include(admin.site.urls)), 
      (r'^report/$', 'App.djangoapp.views.reporting'),
      (r'^facebook/', 'App.djangoapp.views.facebook'),
      (r'^twitter/', 'App.djangoapp.views.twitter'),
      (r'^pytest/', 'App.djangoapp.views.pytest'),
  </code></pre>
  
  <p>I know I need to put in a HttpResponse for my pytest view but I don't know how to render the image for the client who is accessing that url. When the client accesses that url, it should just generate an image of the graph. How can I go about doing this?</p>