Login

Google Charts Templatetags (HTML)

Author:
justquick
Posted:
April 26, 2008
Language:
HTML/template
Version:
Not specified
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. Bootstrap Accordian by Netplay4 5 years, 10 months ago
  2. Bootstrap theme for django-endless-pagination? by se210 8 years, 10 months ago
  3. Bootstrap theme for django-endless-pagination? by se210 8 years, 10 months ago
  4. Reusable form template with generic view by roldandvg 8 years, 11 months ago
  5. Pagination Django with Boostrap by guilegarcia 9 years, 1 month ago

Comments

Please login first before commenting.