Charts for Django using Google Charts API
Project description
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 %}
Project details
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for django_charting-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 910821806f511e5132b13f43465f09e80c54fece5769be978d0576a5124327bc |
|
MD5 | 4779ac8b7310465439d38f6a5be17c32 |
|
BLAKE2b-256 | 09497a1a3ae3780e838538131d9fc2ef17a9983a0441552b383c8508e13f42c5 |