summaryrefslogtreecommitdiff
path: root/src/static/histogram.js
blob: ce84bea3375e6014daa60c2fc410f52ab3e8f622 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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,
      },
    ],
  },
});