summaryrefslogtreecommitdiff
path: root/system/admin/admin.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-11-03 23:19:08 -0700
committerSteve Manuel <nilslice@gmail.com>2016-11-03 23:19:08 -0700
commit0668a23961d5df06ee981d70ecb2fbf5f3fcdb07 (patch)
treec561a197982e0fce03078ed2d25b73cd225a0d8f /system/admin/admin.go
parenta3ced7a753ef5a2aed0a480985c7b69abf244ac2 (diff)
fixing pointer to request for marshalling, updating analytics template
Diffstat (limited to 'system/admin/admin.go')
-rw-r--r--system/admin/admin.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/system/admin/admin.go b/system/admin/admin.go
index 0e690d5..37332ba 100644
--- a/system/admin/admin.go
+++ b/system/admin/admin.go
@@ -386,18 +386,16 @@ var analyticsHTML = `
labels: {{ .dates }},
datasets: [{
type: 'line',
- label: '{{ .unique.label }}',
- // data: [4435, 7231, 3555, 19121, 10876, 5009, 3564],
- data: {{ .unique.data }},
+ label: 'Unique Clients',
+ data: {{ .unique }},
backgroundColor: 'rgba(76, 175, 80, 0.2)',
borderColor: 'rgba(76, 175, 80, 1)',
borderWidth: 1
},
{
type: 'bar',
- label: '{{ .total.label }}',
- // data: [12332, 19333, 13545, 51776, 22334, 13334, 9089],
- data: {{ .total.data }},
+ label: 'Total Requests',
+ data: {{ .total }},
backgroundColor: 'rgba(33, 150, 243, 0.2)',
borderColor: 'rgba(33, 150, 243, 1)',
borderWidth: 1