Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A library for simple histograms in Django's and it's admin.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 django_histograms
Octocat-spinner-32 .gitignore
Octocat-spinner-32 CONTRIBUTORS
Octocat-spinner-32 LICENSE
Octocat-spinner-32 MANIFEST.in
Octocat-spinner-32 README.rst
Octocat-spinner-32 setup.py
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 %}
Something went wrong with that request. Please try again.