diff options
Diffstat (limited to 'system/admin/admin.go')
-rw-r--r-- | system/admin/admin.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/admin/admin.go b/system/admin/admin.go index f6e7d20..b86db2a 100644 --- a/system/admin/admin.go +++ b/system/admin/admin.go @@ -387,7 +387,7 @@ var analyticsHTML = ` datasets: [{ type: 'line', label: 'Unique Clients', - data: {{ .unique }}, + data: $.parseJSON({{ .unique }})), backgroundColor: 'rgba(76, 175, 80, 0.2)', borderColor: 'rgba(76, 175, 80, 1)', borderWidth: 1 @@ -395,7 +395,7 @@ var analyticsHTML = ` { type: 'bar', label: 'Total Requests', - data: {{ .total }}, + data: $.parseJSON({{ .total }}), backgroundColor: 'rgba(33, 150, 243, 0.2)', borderColor: 'rgba(33, 150, 243, 1)', borderWidth: 1 |