summaryrefslogtreecommitdiff
path: root/src/templates/chart.html
diff options
context:
space:
mode:
authoruser <user@node5.net>2024-03-23 22:24:06 +0100
committeruser <user@node5.net>2024-03-23 22:24:06 +0100
commitb70a9b7ed2f5ebea9d35d9bdf4a666b8cfdce29b (patch)
tree3d20ef20b2835e004489b01f853c861350a2b14a /src/templates/chart.html
parente06d7f926833d6fba19e57cb2211696e0bdbc6ad (diff)
chart stacked grouped by ip address
Diffstat (limited to 'src/templates/chart.html')
-rw-r--r--src/templates/chart.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/templates/chart.html b/src/templates/chart.html
new file mode 100644
index 0000000..4536784
--- /dev/null
+++ b/src/templates/chart.html
@@ -0,0 +1,32 @@
+<canvas id="histogram"></canvas>
+
+{{ histogram_data|safe }}
+
+{{ histogram_labels|safe }}
+
+<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>