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.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/static/histogram.js b/src/static/histogram.js
new file mode 100644
index 0000000..ce84bea
--- /dev/null
+++ b/src/static/histogram.js
@@ -0,0 +1,17 @@
+var ctx = document.getElementById("histogram");
+
+var myChart = new Chart(ctx, {
+ type: "line",
+ options: {
+ aspectRatio: 5,
+ },
+ data: {
+ labels: labels,
+ datasets: [
+ {
+ label: "SSH Login attempts",
+ data: data,
+ },
+ ],
+ },
+});