Library to render chart using chartjs
Project description
Documentation
The full documentation is at https://django-charts.readthedocs.io/en/latest/
Quickstart
Install dj-chartjs:
pip install dj-chartjs
Add it to your INSTALLED_APPS:
INSTALLED_APPS = (
...
'dj_chartjs',
...
)
PS: You need define jquery and chartjs libraries in your html section script
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.bundle.js"></script>
Running Tests
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install tox (myenv) $ tox
History
0.1.0 (2020-03-30)
First release on PyPI.
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
dj-chartjs-1.0.5.tar.gz
(82.0 kB
view hashes)
Built Distribution
Close
Hashes for dj_chartjs-1.0.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f7266e114a58ebeabaa645ea441b5c003e09d99530f1a8886f543efe9ff3ba8 |
|
MD5 | 5ee5b8732780f681367dea6cc95d8623 |
|
BLAKE2b-256 | 8d0b07b8ed2890742a051d318634a0eda7ee9ba60a916788b5927acbe504b294 |