summaryrefslogtreecommitdiff
path: root/src/static/histogram.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/static/histogram.js')
-rw-r--r--src/static/histogram.js35
1 files changed, 25 insertions, 10 deletions
diff --git a/src/static/histogram.js b/src/static/histogram.js
index ce84bea..c65efd2 100644
--- a/src/static/histogram.js
+++ b/src/static/histogram.js
@@ -3,15 +3,30 @@ var ctx = document.getElementById("histogram");
var myChart = new Chart(ctx, {
type: "line",
options: {
- aspectRatio: 5,
+ aspectRatio: 4,
},
- data: {
- labels: labels,
- datasets: [
- {
- label: "SSH Login attempts",
- data: data,
- },
- ],
- },
+ data: {
+ labels: labels,
+ datasets: datasets
+ },
+ options: {
+ scales: {
+ y: {
+ stacked: true,
+ beginAtZero: true,
+ title: {
+ display: true,
+ text: 'Page Views'
+ }
+ },
+ },
+ layout: {
+ padding: {
+ left: 20,
+ right: 20,
+ top: 20,
+ bottom: 20
+ }
+ }
+ }
});