django-charting
Charts for Django using Google Charts API.
Installation
Install django-charting using pip
pip install django-charting
Quickstart
- Add "django_charting" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = (
# ...
"django_charting",
# ...
)
- 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")
- Render the chart in a template like this:
{% load django_charting %}
{% render_chart chart %}
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-2.0.0.tar.gz
(16.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-charting-2.0.0.tar.gz.
File metadata
- Download URL: django-charting-2.0.0.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bfa7972d5290ff716cceedf803c6cc58ee1161ac72ffeff7e4fc0c69367797c
|
|
| MD5 |
30dcf6b3ffbb307d0f0f03277a2ee3a7
|
|
| BLAKE2b-256 |
3ace5ae25036e6b26f46db61c96c480e640769c2029b14669cdb9bc1b3d5b8a9
|
File details
Details for the file django_charting-2.0.0-py3-none-any.whl.
File metadata
- Download URL: django_charting-2.0.0-py3-none-any.whl
- Upload date:
- Size: 27.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0bd9e8b4897f41e28221597301b7bc2aa46ab8989a3751ad3cdf6d89aa40971
|
|
| MD5 |
1e38428e57bd370fa720e1f5b9e57c64
|
|
| BLAKE2b-256 |
8af7699b2d293fd795f50a6c739863df8f539f415b9f6a5932353173d475cffd
|