Frontend Charts for django
Project description
dchartjs
dchartjs is python package. it is used to draw charts in frontend Using Django
Installation
Use the package manager pip to install dchartjs.
pip install dchartjs
Basic Usage In Django
in Django views.py
from dchartjs.basic_chart import Bchart
def DjangoChart(request):
Chart = Bchart()
Chart.chart_data(xdata=[0,2,5,10],ydata=[1,5,5,25])
data = Chart.project_djangoview()
return render(request, 'chart.html', data)
in chart.html
<body>
{{ chart_as }}
</body>
Basic Usage In No Framework
if your not using any Framework then you can also plot directly into web
from dchartjs.basic_chart import Bchart
Chart = Bchart()
Chart.chart_data(xdata=[0,2,5,10],ydata=[1,5,5,25])
Chart.project_web() #it creat temp.html file then open chart in browser
Basic Style dchartjs
from dchartjs.basic_chart import Bchart
def DjangoChart(request):
Chart = Bchart()
Chart.chart_style_conf(width=100,height=100)
Chart.chart_data(xdata=[0,2,5,10],ydata=[1,5,5,25])
data = Chart.project_djangoview()
return render(request, 'chart.html', data)
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
dchartjs-0.2.tar.gz
(2.8 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 dchartjs-0.2.tar.gz.
File metadata
- Download URL: dchartjs-0.2.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d6b5e77ae8b8c5ecc749db16ad14e66107885104413d25b96802c4e3641bc93
|
|
| MD5 |
ababe12c0afc9f99d1aecf38fa3b35e1
|
|
| BLAKE2b-256 |
9664e1de991a3842b9684cf8fc129e7782d47d2dbf364e5dbd6f874efe042c7e
|
File details
Details for the file dchartjs-0.2-py3-none-any.whl.
File metadata
- Download URL: dchartjs-0.2-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97ebfb875f16d842207915230b591d3e031d4ed45695e2e46d59d3a639194cc9
|
|
| MD5 |
1c57ca6625d95404e9272679af68887b
|
|
| BLAKE2b-256 |
4bb9a6cce7b4c64a0b22b7f9a48e964cffdb5cc400cbf03022ee235c601f3fae
|