diff options
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, + }, + ], + }, +}); |
