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.

Source Distribution

django-charting-22.1.tar.gz (14.8 kB view hashes)

Uploaded Source

Built Distribution

django_charting-22.1-py3-none-any.whl (8.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page