Skip to main content

A simple Django application for integrating Chartbuilder

Project description

A simple Django application for integrating Chartbuilder.

Quick start

  1. Add django_chartbuilder to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = (
        ...
        'django_chartbuilder',
    )
    
  2. Include the django-chartbuilder URLconf in your project urls.py like this:

    url(r'^/chartbuilder/$', include('django_chartbuilder.urls')),
    
  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-chartbuilder, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size django-chartbuilder-0.1.tar.gz (8.6 MB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page