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.24.tar.gz
(80.7 kB
view hashes)
Built Distribution
Close
Hashes for dj_chartjs-0.1.24-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2ae0e5aea82a8926b1e2a9acd72a42afc882db439bec73a3585ff9179b5d94f |
|
MD5 | 257ce61b6a8a7444be527ce04d95b09e |
|
BLAKE2b-256 | ad20547f810000210aae8d5e2078880dece9ed81bceca6b06d89669684f7b29e |