diff options
| author | Priyansh <[email protected]> | 2021-11-10 00:52:06 -0500 |
|---|---|---|
| committer | Priyansh <[email protected]> | 2021-11-10 00:52:06 -0500 |
| commit | 3199c6ffee887c1dd21fbaecf9fdfe8c8a25a4cf (patch) | |
| tree | fcf149245f519d4fd1ce8ed6c7a97fd0da7d361c | |
| parent | d9f25b94748a08627c43961c2ac9837d34c2b8c4 (diff) | |
| download | temp_pred_arima-3199c6ffee887c1dd21fbaecf9fdfe8c8a25a4cf.tar.xz temp_pred_arima-3199c6ffee887c1dd21fbaecf9fdfe8c8a25a4cf.zip | |
Added Image graph from Flask
| -rw-r--r-- | dashboard/app.py | 5 | ||||
| -rw-r--r-- | dashboard/templates/index.html | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/dashboard/app.py b/dashboard/app.py index f5c5ab4..9c7e23b 100644 --- a/dashboard/app.py +++ b/dashboard/app.py @@ -7,7 +7,8 @@ app = Flask(__name__) @app.route("/") @app.route("/index") def index(): - return render_template("index.html") + graph = 'https://humansofdata.atlan.com/wp-content/uploads/2016/11/Line-Graph.png' + return render_template("index.html", graph=graph) @app.route("/map") def map(): @@ -17,4 +18,4 @@ def map(): if __name__ == '__main__': - app.run(debug=True)
\ No newline at end of file + app.run(debug=True) diff --git a/dashboard/templates/index.html b/dashboard/templates/index.html index e5568fe..a26ac3c 100644 --- a/dashboard/templates/index.html +++ b/dashboard/templates/index.html @@ -18,7 +18,7 @@ </div> </header> <section class="grid grid-cols-2" style="height: calc(100vh - 60px);"> - <div class="border-r-2 border-b-2 border-black px-2 pt-2"> + <div class="border-r-2 border-b-2 border-black px-2 pt-2" style="height: calc(50vh - 30px);"> <table class="table-fixed border-collapse border border-black-800"> <thead> <tr> @@ -50,7 +50,9 @@ <div class="border-b-2 border-black m-0"> <iframe src="/map" frameborder="0" style="height: 100%; width: 100%;"></iframe> </div> - <div class="border-r-2 border-black py-6 px-6">Row 3</div> + <div class="border-r-2 border-black py-6 px-6" style="height: calc(50vh - 30px);"> + <img src="{{ graph }}" alt="" style="height: 100%; max-width: auto; margin: auto;" /> + </div> <div class="py-6 px-6 text-center"> <p class="mt-2"> <select class="px-4 py-3 rounded-full"> |
