Login

Google Charts Templatetags (HTML)

Author:
justquick
Posted:
April 26, 2008
Language:
HTML/template
Version:
Not specified
Tags:
templatetags google chart
Score:
4 (after 4 ratings)

Example usage of the GChartWrapper.charts module for creating dynamic charts with templatetags. It is an easy method of creating dynamic GoogleCharts from the GoogleChartAPI. The project is located at google-chartwrapper. To get the most recent version:

svn checkout http://google-chartwrapper.googlecode.com/svn/trunk/

and run python setup.py in the downloaded trunk directory. There is an included django project there with the ChartsExamples all worked out in django templates

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
{% load charts %}
{%  chart lc 4.0 93.0 42.0 48.8 70.0 99.0  encoding=text %}
    {% scale 4 100 %}
    {%  axes type xy  %}
    {%  axes label 0 Mar  Apr  May  June  July   %}
    {%  axes label 1 None  50+K   %}
    {%  color ff0000   %}
    {%  line 6 5 2   %}
        {% img alt=DataScaling height=400 id=img title=DataSaling %}
    {%  size 400 200   %}
{% endchart %}

More like this

  1. Google Charts Templatetags (Python) by justquick 7 years, 2 months ago
  2. model queries to Google Visualization DataTables by banderkat 2 years, 1 month ago
  3. Template tag for compressed CSS & JS (GAE version) by jeffar 7 years, 2 months ago
  4. Generate QR Code image for a string by johnnoone 6 years, 3 months ago
  5. Accessing Environment Variables in Templates by LorenDavie 7 years, 1 month ago

Comments

Please login first before commenting.