Attractive Charts with Open Flash Charts and Django

Wednesday, 15 April 2009

I've put together a sample django app that uses PyOFC2 library to render charts in web browsers using Open Flash Chart 2.

This django+pyofc2 demo code can be downloaded from github.

Using PyOFC2 with Django

  1. Download Open Flash Chart 2
  2. Download and install PyOFC2
  3. Download SWFObject and put the files in your static media directory
  4. Add references to the SWFObject files and open-flash-chart.swf file in the header section. See templates/index.html for details
  5. Create a view to serve the json data from. See demoapp/
  6. Configure to map the view to the url endpoint.
blog comments powered by Disqus