cuker/django-reportengine — pull request #6 by KrzysiekJ (2012-11-08 12:13:00+00:00)
Title: Charts

(This is basically pull request #5 reopened with branch set to charts instead of master).

I've added chart support. It is written in a way that tries to be backend agnostic, so a user is not forced to use any particular packages. Instead the only thing reportengine demands from user is to provide callables that accept particular format of parameters and return objects suitable for rendering in selected output format(s) (which will usually mean duck typing). That way we are not tied to any specific chart backend and it should be quite easy to write wrappers for existing backends.

Chart configuration format probably needs rethinking; I'm not sure if it shouldn't be a bit simpler.

I've also made a Google Chart API wrapper (for new version of API released in April 2012) which is suitable for use with this set of commits: https://github.com/KrzysiekJ/gchart