summaryrefslogtreecommitdiff
path: root/src/templates/chart.html
blob: fdd6f7f28ef7f025c287e08f98a0ae426f6dd855 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<canvas id="histogram"></canvas>

<script defer>
    var datasets = {{ histogram_data|safe }}

    /*
     [
                {
                    label: 'Page Views',
                    data: [5000, 7500, 8000, 6000, 9000],
                    backgroundColor: 'hsl(0, 100%, 50%)',
                    borderColor: 'rgba(75, 192, 192, 1)',
                    borderWidth: 2,
                    fill: 'start'
                },
                {
                    label: 'Page Views2',
                    data: [0, 0, 1100, 400, 1000],
                    backgroundColor: 'rgba(75, 192, 192, 0.5)',
                    borderColor: 'rgba(75, 192, 192, 1)',
                    borderWidth: 2,
                    fill: 'start'
                },

       ]
      */
    var labels = {{ histogram_labels|safe }};
</script>