summaryrefslogtreecommitdiff
path: root/system/admin/admin.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-11-03 17:40:49 -0700
committerSteve Manuel <nilslice@gmail.com>2016-11-03 17:40:49 -0700
commitc9aa995b43d2f24377e8a9ffb07983a62df15dea (patch)
treed5d5f5971b41f2ec3ab3aab92235361da7859549 /system/admin/admin.go
parent48266344863a6f82eacdc4d8e9ea8c747c555fc2 (diff)
adjusting chart size and data - only UI
Diffstat (limited to 'system/admin/admin.go')
-rw-r--r--system/admin/admin.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/system/admin/admin.go b/system/admin/admin.go
index 5bbe9a9..0979d11 100644
--- a/system/admin/admin.go
+++ b/system/admin/admin.go
@@ -377,27 +377,27 @@ var analyticsHTML = `
<script>
var target = document.getElementById("analytics-chart");
Chart.defaults.global.defaultFontColor = '#212121';
- Chart.defaults.global.defaultFontFamily = "'Roboto', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"
+ Chart.defaults.global.defaultFontFamily = "'Roboto', 'Helvetica Neue', 'Helvetica', 'Arial', 'sans-serif'";
Chart.defaults.global.title.position = 'right';
var chart = new Chart(target, {
type: 'bar',
data: {
labels: ["10/28", "10/29", "10/30", "10/31", "11/1", "11/2", "11/3"],
datasets: [{
- type: 'bar',
- label: 'Total Requests',
- data: [12332, 19333, 13545, 51776, 22334, 13334, 9089],
- backgroundColor: 'rgba(33, 150, 243, 0.2)',
- borderColor: 'rgba(33, 150, 243, 1)',
- borderWidth: 1
- },
- {
type: 'line',
label: 'Unique Requests',
data: [4435, 7231, 3555, 19121, 10876, 5009, 3564],
backgroundColor: 'rgba(76, 175, 80, 0.2)',
borderColor: 'rgba(76, 175, 80, 1)',
borderWidth: 1
+ },
+ {
+ type: 'bar',
+ label: 'Total Requests',
+ data: [12332, 19333, 13545, 51776, 22334, 13334, 9089],
+ backgroundColor: 'rgba(33, 150, 243, 0.2)',
+ borderColor: 'rgba(33, 150, 243, 1)',
+ borderWidth: 1
}]
},
options: {