public
Description: A library for simple histograms in Django's admin.
Homepage:
Clone URL: git://github.com/alex/django-admin-histograms.git
David Cramer (author)
Mon Nov 23 11:21:13 -0800 2009
alex (committer)
Tue Nov 24 02:08:53 -0800 2009
name age message
file .gitignore Fri Nov 13 14:21:35 -0800 2009 Ignore build/dist [David Cramer]
file CONTRIBUTORS Fri Nov 13 13:56:50 -0800 2009 Move histogram generation into generic Histogra... [David Cramer]
file LICENSE Thu Nov 12 13:16:14 -0800 2009 Added files [alex]
file MANIFEST.in Fri Nov 13 14:33:19 -0800 2009 Minor doc update (needs more obviously) [David Cramer]
file README.rst Fri Nov 20 01:36:49 -0800 2009 Updated readme. [Daniel Nordberg]
directory django_histograms/ Tue Nov 24 02:08:53 -0800 2009 fix for division by 0 [David Cramer]
file setup.py Sat Nov 14 11:01:38 -0800 2009 More fixes [alex]
README.rst

django-admin-histograms

To use this app simple have your ModelAdmin subclass django_histograms.admin.HistogramAdmin and give it a histogram_field attribute with the name of a DateField or DateTimeField to create the histogram over. Then you can pull up localhost:8000/your_app/your_model/report/ to see the histogram (adjust the URL as necessary).

The designs came from Wilson Miner's article on data visualization for A List Apart.

Using histograms in other pages

You can use the built-in histogram_for template tag:

{% load histograms %}
{% histogram_for appname.Model 'histogram_field' 1 1 %}