diff options
| -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"> |
