diff options
| author | user <user@node5.net> | 2024-03-23 18:52:37 +0100 |
|---|---|---|
| committer | user <user@node5.net> | 2024-03-23 18:52:37 +0100 |
| commit | e06d7f926833d6fba19e57cb2211696e0bdbc6ad (patch) | |
| tree | a3a79b5ec8d0ee254950b53cb9f894e946c7bea9 /src/static/histogram.js | |
| parent | f379b1c78cc224581fac16541e5bc3b6ccbc5dd1 (diff) | |
add login attempts chart
Diffstat (limited to 'src/static/histogram.js')
| -rw-r--r-- | src/static/histogram.js | 17 |
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, + }, + ], + }, +}); |
