Merge branch 'users' into trendings

pull/9/head
Sami Mokaddem 2017-11-17 09:57:48 +01:00
commit 1ca3c7aeba
1 changed files with 2 additions and 2 deletions

View File

@ -101,13 +101,13 @@ function updateDateOvertime() {
for (item of data) {
temp.push([new Date(item[0]*1000), item[1]]);
}
data = {label: 'Login overtime', data: temp}
toPlot = [{label: 'Login overtime', data: temp}];
if (!(overtimeWidget === undefined)) {
overtimeWidget.setData(toPlot);
overtimeWidget.setupGrid();
overtimeWidget.draw();
} else {
overtimeWidget = $.plot('#lineChart', [data], {
overtimeWidget = $.plot('#lineChart', toPlot, {
lines: {
show: true,
steps: true,