Example of using Django + Django REST Framework + Chart.js to generate graphs
Python3.x.x Django Django REST Framework Chart.js
Create a folder to store this project. Open this folder on terminal and run the following commands
git clone https://github.com/rodrigoddc/charts.git
python3 -m venv venv
on linux: source ./venv/bin/activate
on windows: ./venv/Scripts/activate.bat
pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
After that, you'll be able to access the project at 127.0.0.1:8000 or localhost:8000/ on your browser.
At the adress 127.0.0.1:8000/admin or localhost:8000/admin you'll be able to login to populate data that will be rendered as chart