Skip to main content

django-charting

CI Coverage Status Latest PyPI version Any color you like

Charts for Django using Google Charts API.

Installation

Install django-charting using pip

pip install django-charting

Quickstart

  1. Add "django_charting" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = (
    # ...
    "django_charting",
    # ...
)
  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 %}

Metadata

Release files for django-charting 22.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-charting 22.1
File Size Uploaded
django-charting-22.1.tar.gz 14.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-charting 22.1
File Interpreter ABI Platform
django_charting-22.1-py3-none-any.whl Python 3 none any Details

Total release size: 23.5 kB

Release files / django-charting-22.1.tar.gz

Download URL django-charting-22.1.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d12eaccf1869335f29f10cc123257ba09f9950901875dcbe6e013c3bb99a9d65
BLAKE2b-256 checksum
How to use checksums
a4e0508ab1da6309b71b604f77fcc48aae40548d5fe2f44ca4faa4a98c520497
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

Release files / django_charting-22.1-py3-none-any.whl

Download URL django_charting-22.1-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
67305aeeac1cec1de2b06322981ce8f4b9142ee01502351dfcf6a7d6aae1fec4
BLAKE2b-256 checksum
How to use checksums
81bf4c5b7f9fd5b24b8b5f983bcc6e385ba8bf0e394383bad7f8b66286a68388
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

Release history Release notifications | RSS feed

This release

22.1 This release

2 release files

21.1

2 release files

2.0.0

2 release files

1.0.0

2 release files

0.2.0

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page