diff options
author | marwolaethblack <a.unal677@gmail.com> | 2017-12-04 12:29:01 +0100 |
---|---|---|
committer | marwolaethblack <a.unal677@gmail.com> | 2017-12-04 12:29:01 +0100 |
commit | 28f9bff968d0147eb9406a468e232a5e4cc06467 (patch) | |
tree | e79289fbd7ee4fa6d5280b9328101a1954885c58 /app/Resources/views/default | |
parent | 074799d1471df407663931d6654847fa38484a3e (diff) |
sort data by day, add lien chart with data from last week
Diffstat (limited to 'app/Resources/views/default')
-rw-r--r-- | app/Resources/views/default/AllDataPage.html.twig | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/Resources/views/default/AllDataPage.html.twig b/app/Resources/views/default/AllDataPage.html.twig index 6162b49..429e13e 100644 --- a/app/Resources/views/default/AllDataPage.html.twig +++ b/app/Resources/views/default/AllDataPage.html.twig @@ -2,7 +2,8 @@ <html lang="en"> <head> <meta charset="UTF-8"> - <title>Title</title> + <title>All Pollution Data | Pollutometer</title> + <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.1/Chart.bundle.min.js"></script> </head> <body> <table border="1"> @@ -21,5 +22,9 @@ </tr> {% endfor %} </table> +<canvas id="ctx"></canvas> </body> +{% block javascripts %} + <script src="{{ asset('js/chartOfReadings.js') }}"></script +{% endblock %} </html>
\ No newline at end of file |