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-1.0.0.tar.gz
(16.3 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-1.0.0.tar.gz.
File metadata
- Download URL: django-charting-1.0.0.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1539ff670e69fde892ec0f94f4bdc0b48924c2b186bf6d467d4ba548122efbe
|
|
| MD5 |
5a6a9b21c04e5c006f37d7a61a631f7c
|
|
| BLAKE2b-256 |
be306823bd8fc793a3a23ed90c62ea51a4bd342c20bd82a5d9ffe88cd4eb75dc
|
File details
Details for the file django_charting-1.0.0-py3-none-any.whl.
File metadata
- Download URL: django_charting-1.0.0-py3-none-any.whl
- Upload date:
- Size: 27.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
910821806f511e5132b13f43465f09e80c54fece5769be978d0576a5124327bc
|
|
| MD5 |
4779ac8b7310465439d38f6a5be17c32
|
|
| BLAKE2b-256 |
09497a1a3ae3780e838538131d9fc2ef17a9983a0441552b383c8508e13f42c5
|