Commit a8cc6d26 authored by Kristian Tan's avatar Kristian Tan

Graph styling

parent edb90b43
...@@ -51,6 +51,7 @@ body { ...@@ -51,6 +51,7 @@ body {
width: 70%; width: 70%;
height: 50%; height: 50%;
margin-left: 25%; margin-left: 25%;
border-style: solid;
} }
.chart_title { .chart_title {
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
</ul> </ul>
{# <div class="chart">#} {# <div class="chart">#}
<h3 class="chart_title">Last weeks usage</h3> <h3 class="chart_title">Energy usage for the last 7 days</h3>
<canvas id="chart" class="chart" ></canvas> <canvas id="chart" class="chart" ></canvas>
<script> <script>
// bar chart data // bar chart data
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
} }
// get bar chart canvas // get bar chart canvas
var mychart = document.getElementById("chart").getContext("2d"); var mychart = document.getElementById("chart").getContext("2d");
steps = 1 steps = 1;
max = {{ max }} max = {{ max }}
// draw bar chart // draw bar chart
new Chart(mychart).Bar(barData, { new Chart(mychart).Bar(barData, {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment