Commit a8cc6d26 authored by Kristian Tan's avatar Kristian Tan

Graph styling

parent edb90b43
......@@ -51,6 +51,7 @@ body {
width: 70%;
height: 50%;
margin-left: 25%;
border-style: solid;
}
.chart_title {
......
......@@ -66,7 +66,7 @@
</ul>
{# <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>
<script>
// bar chart data
......@@ -90,7 +90,7 @@
}
// get bar chart canvas
var mychart = document.getElementById("chart").getContext("2d");
steps = 1
steps = 1;
max = {{ max }}
// draw bar chart
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