djangosnippets.org: Latest snippets tagged with 'chart'http://djangosnippets.org/tags/chart/2008-07-05T06:39:34.572476-05:00Last.fm Charts
2008-07-05T06:39:34.572476-05:00seddenhttp://djangosnippets.org/snippets/857/<p>This will fetch the Top Artists List for the given username from Last.fm. It makes use of the django.cache Framework. I use it with django 0.96.2. Enjoy!</p>
<p>Usage:</p>
<p><code>{% load lastfm %}
{% lastfm_topartists YourName as topartists %}
{% for artist in topartists %}
{{ artist.thumbnail }}, {{ artist.name }}, …</code></p>
Freely redistributableGoogle Charts Templatetags (Python)
2008-07-01T05:46:13.553344-05:00justquickhttp://djangosnippets.org/snippets/839/<p>The core templatetags for my project <a href="http://code.google.com/p/google-chartwrapper/">google-chartwrapper</a>. It is an easy method of creating dynamic GoogleCharts from the <a href="http://code.google.com/apis/chart/">GoogleChartAPI</a>. To get the most recent version:</p>
<p><code>svn checkout http://google-chartwrapper.googlecode.com/svn/trunk/</code></p>
<p>and run <code>python setup.py</code> in the downloaded trunk directory. There is an included django project there with the <a href="http://code.google.com/p/google-chartwrapper/wiki/ChartExamples">ChartsExamples</a> all …</p>
Freely redistributableGoogle Charts Templatetags (HTML)
2008-04-26T21:31:10.418961-05:00justquickhttp://djangosnippets.org/snippets/726/<p>Example usage of the GChartWrapper.charts module for creating dynamic charts with templatetags. It is an easy method of creating dynamic GoogleCharts from the <a href="http://code.google.com/apis/chart/">GoogleChartAPI</a>. The project is located at <a href="http://code.google.com/p/google-chartwrapper/">google-chartwrapper</a>. To get the most recent version:</p>
<p><code>svn checkout http://google-chartwrapper.googlecode.com/svn/trunk/</code></p>
<p>and run <code>python setup.py</code> in the downloaded trunk directory. …</p>
Freely redistributable