Who Doesn't Love a Good Plot?
Jacob Kaplan-Moss has made available a template tag app that lets you create Google Charts using the familiar Django template tag syntax. You start with a {% chart %} tag, add in your params and data with a few nested tags and voila! I can haz charts!
Here is an example of the template syntax, taken from the examples provided with his source:
:::django
{% chart %}
{% chart-data data1 %}
{% chart-size "300x200" %}
{% chart-type "pie" %}
{% chart-labels "One" "Two" "Three" %}
{% chart-alt "I can haz charts?" %}
{% endchart %}
One big attraction of this app is that it takes care of all the URL construction, including dealing with the usual fun encoding issues so that you never need to see any of that.
View the examples
Source repository
Google Charts API
<< Back to Unbracketed Home Post a Comment Now
Post a comment
- Markdown syntax is allowed. HTML tags will be stripped.
- CodeHilite NOT supported at this time but coming soon...
- Constructive statements and good attitudes are encouraged - being kind is better than being right


