Module charts
source code
Django templatetags for chart and note types
Now takes an as argument
If the as argument is 'img', it will return a XHTML <img/>
If the as argument is 'url', it will simply return the url of the chart
If the as argument is anything else, the chart will be loaded into the context
and named what the as argument is
{% chart ... [as url|img|varname] %}
...
{% endchart %}
Example:
{% chart Pie3D 1 2 3 4 5 as pie %}
{% label A B C D %}
{% color green %}
{% endchart %}
{% pie %} # The chart obj itself
{% pie.image %} # The PIL instance
{% pie.checksum %} # An SHA1 checksum
The FancyNode powers the tag for Note,Pin,Text and Bubble charts
The <type> argument is one of the chart types in lower case
{% <type> ... [as url|img|varname]%}
Example:
{% bubble icon_text_big snack bb $2.99 ffbb00 black as img %}
|
register = Library()
|
|
tag = ' level_data '
|