A simple Django application for integrating Chartbuilder
Project description
A simple Django application for integrating Chartbuilder.
Install
pip install django_chartbuilder
Quick start
Add django_chartbuilder to your INSTALLED_APPS setting:
INSTALLED_APPS = ( ... 'django_chartbuilder', )
Include the django-chartbuilder URLconf in your project urls.py:
url(r'^/chartbuilder/$', include('django_chartbuilder.urls')),
Navigate to /chartbuilder/ to get the default styled Chartbuilder chart generator (i.e. identical to http://quartz.github.io/Chartbuilder/)
Customization
You can extend the chartbuilder.html template to customize the chart generator.
In your project’s templates/django_chartbuilder/ directory, create a template chartbuilder.html and extend djangno_chartbuilder/index.html:
<!-- templates/django_chartbuilder/chartbuilder.html --> {% extends "django_chartbuilder/index.html" %} {% block title %}My Custom Chartbuilder Generator{% endblock %} {% block extrajs %} <script src="some_random_script.js"></script> {% endblock %}
Take a look at django_chartbuilder/templates/django_chartbuilder/index.html to find out (a lot of) additional sections you can override.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-chartbuilder-0.3.tar.gz
.
File metadata
- Download URL: django-chartbuilder-0.3.tar.gz
- Upload date:
- Size: 8.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31fdf2d7f9338de733d85417a0b7fc66e6177b5965cca8b60dabe41fd1e33ac5 |
|
MD5 | 3e0842900816b59fe3f03e1d0bc28944 |
|
BLAKE2b-256 | 8526dd83ed3999479aa47747022c536e73df1cae819e4b0a1d9e820678b03a5d |