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-0.1.22.tar.gz
(80.7 kB
view hashes)
Built Distribution
Close
Hashes for dj_chartjs-0.1.22-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a34f41850f947423e77baccc53d603f1b3808fc56e2d263a2c50bb58d1d55731 |
|
MD5 | a00ba782a7ce679c50981ef58d08ecd2 |
|
BLAKE2b-256 | 18d23cf6aec6585d97f0c2358c70ce443f3b7a89dae4e64d611051fac2e94599 |