Skip to content

alex/django-admin-histograms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 %}

About

A library for simple histograms in Django's admin.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages