Just some recent changes

This commit is contained in:
RussellChamp committed 2018-09-19 17:04:38 +00:00
1 parent ce32bc223b
commit 9247e2f2e2
20 files changed
+243 -88

No files matched your search

+5 -1
View File
@@ -23,7 +23,7 @@ charset="utf-8"></script>-->
d = new Date(0);
d.setUTCSeconds((Number(time) + threeDays) % oneWeek - threeDays);
<!--data.push([user, d.toISOString().slice(11,16), d, d]);-->
data.push([user, d, d]);
data.push([user, d, d]); <!-- User, Start, End, score -->
});
}
});
@@ -54,13 +54,17 @@ charset="utf-8"></script>-->
function drawChart() {
var container = document.getElementById('timeline');
console.log('container', container);
var chart = new google.visualization.Timeline(container);
console.log('chart', chart);
var dataTable = new google.visualization.DataTable();
console.log('dataTable', dataTable);
dataTable.addColumn({ type: 'string', id: 'User' });
<!--dataTable.addColumn({ type: 'string', id: 'tooltip' });-->
dataTable.addColumn({ type: 'date', id: 'Start' });
dataTable.addColumn({ type: 'date', id: 'End' });
<!--dataTable.addColumn({ type: 'number', id: 'Score' });-->
dataTable.addRows(data);
chart.draw(dataTable);