Skip to main content

Charts for Django using Google Charts API

Project description


CI Coverage Status Latest PyPI version Any color you like

Charts for Django using Google Charts API.


Install django-charting using pip

pip install django-charting


  1. Add "django_charting" to your INSTALLED_APPS setting like this::
    # ...
    # ...
  1. Create a basic chart like this:
from django_charting import Chart, NumberColumn, StringColumn

class DemoChart(Chart):
    queryset = [
        {"project": "Project 1", "count": 75},
        {"project": "Project 2", "count": 25},
    type = "PieChart"
    title = "My demo"

    project = StringColumn()
    count = NumberColumn(accessor="count")
  1. Render the chart in a template like this:
{% load django_charting %}

{% render_chart chart %}

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-charting, version 21.1
Filename, size File type Python version Upload date Hashes
Filename, size django_charting-21.1-py3-none-any.whl (8.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-charting-21.1.tar.gz (10.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page