summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/static/histogram.js62
1 files changed, 32 insertions, 30 deletions
diff --git a/src/static/histogram.js b/src/static/histogram.js
index d76fc60..228614c 100644
--- a/src/static/histogram.js
+++ b/src/static/histogram.js
@@ -1,35 +1,37 @@
var ctx = document.getElementById("histogram");
+
var myChart = new Chart(ctx, {
- type: "line",
- options: {
- aspectRatio: 4,
- },
- data: {
- labels: labels,
- datasets: datasets
- },
- options: {
- responsive: true,
- maintainAspectRatio: false,
+ type: "line",
+ options: {
+ aspectRatio: 4,
+ },
+ data: {
+ labels: labels,
+ datasets: datasets
+ },
+ options: {
+ responsive: true,
+ maintainAspectRatio: false,
- scales: {
- y: {
- stacked: true,
- beginAtZero: true,
- title: {
- display: true,
- text: 'SSH login attempts'
- }
- },
- },
- layout: {
- padding: {
- left: 20,
- right: 20,
- top: 20,
- bottom: 20
- }
- }
- }
+ scales: {
+ y: {
+ stacked: true,
+ beginAtZero: true,
+ title: {
+ display: true,
+ text: 'SSH login attempts'
+ }
+ },
+ },
+ layout: {
+ padding: {
+ left: 20,
+ right: 20,
+ top: 20,
+ bottom: 20
+ }
+ }
+ },
});
+