diff --git a/app/__pycache__/app.cpython-36.pyc b/app/__pycache__/app.cpython-36.pyc index a6bf370..6914d02 100644 Binary files a/app/__pycache__/app.cpython-36.pyc and b/app/__pycache__/app.cpython-36.pyc differ diff --git a/app/app.py b/app/app.py index db82b19..855785b 100644 --- a/app/app.py +++ b/app/app.py @@ -6,6 +6,8 @@ from flask import Flask, render_template, g, jsonify, request, redirect import pandas as pd import settings from random import choice +import matplotlib +matplotlib.use('Agg') import matplotlib.pyplot as plt from matplotlib.pyplot import rcParams diff --git a/app/templates/c3-chart.html b/app/templates/c3-chart.html new file mode 100644 index 0000000..24e877a --- /dev/null +++ b/app/templates/c3-chart.html @@ -0,0 +1,34 @@ + + + + + Simple chart with C3 - in 5 minutes! + + + + + + + + + + +
+ + + + diff --git a/requirements.txt b/requirements.txt index 9822564..16bd862 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,17 +1,20 @@ # Requirements automatically generated by pigar. # https://github.com/Damnever/pigar -# app.py: 2 +Python == 3.6.1 + +# app.py: 5 Flask == 0.12 -# app.py: 7 +# app.py: 12 Flask_WTF == 0.14.2 -# app.py: 8 +# app.py: 13 WTForms == 2.1 +# app.py: 9,10 # settings.py: 4 matplotlib == 2.0.2 -# app.py: 3 +# app.py: 6 pandas == 0.20.1