Commit a2d7e057 authored by Yannick Lehnhausen's avatar Yannick Lehnhausen

fixed JSHINT errors

parent b6f70f92
......@@ -45,7 +45,6 @@
"ServiceConfiguration": true,
"ActiveRoute": true,
"prompt": true,
"RouteController": true,
"AppController": true
"Chart": true
}
}
......@@ -43,18 +43,14 @@ export function drawGraph() {
};
var canvas = document.getElementById("adminChart");
var ctx = document.getElementById("adminChart").getContext("2d");
var myNewChart = new Chart(ctx).Bar(data,
new Chart(ctx).Bar(data,
{
responsive: true,
title: {
display: true,
text: 'Custom Chart Title'
}
responsive: true
});
canvas.style.width='100%';
canvas.style.height='100%';
canvas.width = canvas.offsetWidth;
canvas.height = canvas.offsetHeight;
canvas.style.width = '100%';
canvas.style.height = '100%';
canvas.width = canvas.offsetWidth;
canvas.height = canvas.offsetHeight;
}
}
......
......@@ -49,7 +49,7 @@ export function drawGraph() {
]
};
var ctx = document.getElementById("boxChart").getContext("2d");
var myNewChart = new Chart(ctx).Bar(data,
new Chart(ctx).Bar(data,
{
responsive: true
......
......@@ -54,7 +54,7 @@ export function drawGraph() {
]
};
var ctx = document.getElementById("profileChart").getContext("2d");
var myNewChart = new Chart(ctx).Bar(data,
new Chart(ctx).Bar(data,
{
responsive: true
});
......
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