Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f6b9f08

Browse files
authored
Add files via upload
1 parent 56e72e5 commit f6b9f08

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

google-charts/pie-chart/main.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from app import app
2+
from flask import jsonify, request, render_template
3+
4+
@app.route('/google-charts/pie-chart')
5+
def google_pie_chart():
6+
data = {'Task' : 'Hours per Day', 'Work' : 11, 'Eat' : 2, 'Commute' : 2, 'Watching TV' : 2, 'Sleeping' : 7}
7+
#print(data)
8+
return render_template('pie-chart.html', data=data)
9+
10+
if __name__ == "__main__":
11+
app.run()

google-charts/pie-chart/readme.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
You can read tutorial https://www.roytuts.com/google-pie-chart-using-python-flask/

0 commit comments

Comments
 (0)