summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-11-03 17:33:27 -0700
committerSteve Manuel <nilslice@gmail.com>2016-11-03 17:33:27 -0700
commitdd57630bcb66b516420926603e77efbede346c9c (patch)
tree44a5a2961c81b8bf9779a3a01ec3cd804a21b390
parent3efca2cf62e0ec6d8edd6fc666c9d4464dfd9c53 (diff)
adjusting chart size and data - only UI
-rw-r--r--system/admin/admin.go16
1 files changed, 13 insertions, 3 deletions
diff --git a/system/admin/admin.go b/system/admin/admin.go
index 7f3321e..884df66 100644
--- a/system/admin/admin.go
+++ b/system/admin/admin.go
@@ -384,16 +384,26 @@ var analyticsHTML = `
data: {
labels: ["10/28", "10/29", "10/30", "10/31", "11/1", "11/2", "11/3"],
datasets: [{
- label: 'Total Requests by Day',
+ type: 'bar',
+ label: 'Total Requests',
data: [12332, 19333, 13545, 51776, 22334, 13334, 9089],
- backgroundColor: 'rgba(54, 162, 235, 0.2)',
- borderColor: 'rgba(54, 162, 235, 1)',
+ backgroundColor: 'rgba(33, 150, 243, 0.2)',
+ borderColor: 'rgba(33, 150, 243, 1)',
+ borderWidth: 1
+ },
+ {
+ type: 'bar',
+ 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
}]
},
options: {
scales: {
yAxes: [{
+ stacked: true,
ticks: {
beginAtZero:true
}