Django Charts amCharts
, G.Charts
, Apex
Sample project crafted with Django
, DRF
and multiple Charts Libraries to showcase how to plot different charts Pie, Line and Bar Charts, using Bootstrap5
for styling.
- ๐ Multiple Charts via Django & DRF - Blog Article
- ๐ Free support via
email
and Discord.
Features:
- โ
Up-to-date dependencies
- โ
Stack
: Django - โ
API
: DRF (Django REST Framework) - โ
Chart Libraries
:- ๐
Charts.js
- ๐
Chartist
- ๐
amCharts
- ๐
Google Charts
- ๐
Apex Charts
- ๐
๐ Clone Sources (this repo)
$ git clone https://github.com/app-generator/sample-django-charts-multiple.git
$ cd sample-django-charts-multiple
๐ Install Modules using a Virtual Environment
$ virtualenv env
$ source env/bin/activate
$ pip3 install -r requirements.txt
Or for Windows-based Systems
$ virtualenv env
$ .\env\Scripts\activate
$
$ # Install modules - SQLite Database
$ pip3 install -r requirements.txt
๐ Migrate Database
$ python manage.py migrate
$ python manage.py runserver
๐ Create Superuser
$ python manage.py createsuperuser
๐ Start the APP
$ python manage.py runserver
The bootstrap flow
- Access the
admin
section- Load
data/users.csv
in users table (using import/export feature) - Load
data/products.csv
in users table (using import/export feature)
- Load
- Access the HOMEpage
- Charts should be displayed with data
Django Charts amCharts
, G.Charts
, Apex
- provided by AppSeed