Skip to content

Commit d2c4f0b

Browse files
committed
Djano - Added pages (draft)
1 parent 2b32482 commit d2c4f0b

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: Django & Plotly
3+
description: Learn how to show-case charts with Django & Plotly
4+
---
5+
6+
import SubHeading from "@site/src/components/SubHeading";
7+
8+
<SubHeading color="#25c2a0">Learn how to show-case charts with Django & Plotly</SubHeading>
9+
10+
> Input:
11+
12+
- Sample REPO: https://github.com/app-generator/django-plotly-charts
13+
14+
> Topics
15+
16+
- Set UP a basic Django project
17+
- Install [Material Design](https://github.com/app-generator/django-admin-material-dashboard)
18+
- Create a `Sales` Model with fields:
19+
- product, string
20+
- price, int
21+
- currency, string (usd, eur)
22+
- country, string
23+
- purchase_date, Unix timestamp
24+
- The main page will showcase three charts:
25+
- Bar Chart
26+
- Line Chart
27+
- PIE Chart
28+
- Full implementation for beginners
29+
- The information is computed on the server side using `Plotly`
30+
31+
![Django - Simple Charts](https://user-images.githubusercontent.com/51070104/234304017-97178893-880c-495b-af73-e1c789a9b6b2.png)
File renamed without changes.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
title: Django - API and Chart.JS
3+
description: Learn how to show-case charts with Django & Chart.JS
4+
---
5+
6+
import SubHeading from "@site/src/components/SubHeading";
7+
8+
<SubHeading color="#25c2a0">Learn how to show-case charts with Django & Chart.JS</SubHeading>
9+
10+
> Input:
11+
12+
- Sample REPO: https://github.com/app-generator/django-api-and-chart-js
13+
14+
> Topics
15+
16+
- Set UP a basic Django project
17+
- Install [Material Design](https://github.com/app-generator/django-admin-material-dashboard)
18+
- Create a `Sales` Model with fields:
19+
- product, string
20+
- price, int
21+
- currency, string (usd, eur)
22+
- country, string
23+
- purchase_date, Unix timestamp
24+
- The main page will showcase three charts:
25+
- Bar Chart
26+
- Line Chart
27+
- PIE Chart
28+
- Full implementation for beginners
29+
- The information is served via an API using [API Generator](https://github.com/app-generator/django-api-generator) Library
30+
- Charts are rendered via https://www.chartjs.org/
31+
32+
![Django - Simple Charts](https://user-images.githubusercontent.com/51070104/234304017-97178893-880c-495b-af73-e1c789a9b6b2.png)

0 commit comments

Comments
 (0)