Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alex/django-admin-histograms
A library for simple histograms in Django's admin.
https://github.com/alex/django-admin-histograms
Last synced: 14 days ago
JSON representation
A library for simple histograms in Django's admin.
- Host: GitHub
- URL: https://github.com/alex/django-admin-histograms
- Owner: alex
- License: bsd-3-clause
- Created: 2009-11-12T21:16:43.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2010-01-23T08:45:08.000Z (almost 15 years ago)
- Last Synced: 2024-08-05T15:05:42.777Z (3 months ago)
- Language: Python
- Homepage:
- Size: 229 KB
- Stars: 106
- Watchers: 5
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
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 %}