summaryrefslogtreecommitdiff
path: root/system/admin/admin.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-11-03 17:13:21 -0700
committerSteve Manuel <nilslice@gmail.com>2016-11-03 17:13:21 -0700
commit0130d97effb5baef04999093354830e36d812146 (patch)
tree0d53c432312493ed3dc0be3654b9850634c38652 /system/admin/admin.go
parent06859257193861b932e14b519f05638f4d737bad (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, 4 insertions, 14 deletions
diff --git a/system/admin/admin.go b/system/admin/admin.go
index a90eb96..c0b3730 100644
--- a/system/admin/admin.go
+++ b/system/admin/admin.go
@@ -369,7 +369,7 @@ func UsersList(req *http.Request) ([]byte, error) {
}
var analyticsHTML = `
-<div class="init col s5">
+<div class="analytics">
<div class="card">
<div class="card-content">
<div class="card-title">API Requests</div>
@@ -379,25 +379,15 @@ var analyticsHTML = `
var myChart = new Chart(ctx, {
type: 'bar',
data: {
- labels: ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"],
+ labels: ["10/28", 10/29", "10/30", "10/31", "11/1", "11/2", "11/3"],
datasets: [{
- label: '# of Votes',
- data: [12, 19, 3, 5, 2, 3],
+ label: 'Total Requests by Day',
+ data: [12332, 19333, 13545, 51776, 22334, 13334, 9089],
backgroundColor: [
- 'rgba(255, 99, 132, 0.2)',
'rgba(54, 162, 235, 0.2)',
- 'rgba(255, 206, 86, 0.2)',
- 'rgba(75, 192, 192, 0.2)',
- 'rgba(153, 102, 255, 0.2)',
- 'rgba(255, 159, 64, 0.2)'
],
borderColor: [
- 'rgba(255,99,132,1)',
'rgba(54, 162, 235, 1)',
- 'rgba(255, 206, 86, 1)',
- 'rgba(75, 192, 192, 1)',
- 'rgba(153, 102, 255, 1)',
- 'rgba(255, 159, 64, 1)'
],
borderWidth: 1
}]