Bumped to v8

This commit is contained in:
Magnus Åhall 2024-05-20 13:19:22 +02:00
parent 787009c621
commit ff1c848c58
3 changed files with 24 additions and 1 deletions

View file

@ -2,8 +2,19 @@
{{ $version := .VERSION }}
<link rel="stylesheet" type="text/css" href="/css/{{ .VERSION }}/datapoints.css">
<script type="module" defer>
import { DataGraph } from "/js/{{ .VERSION }}/datapoint_graph.mjs"
const graph = new DataGraph({{ .Data.Datapoint }})
graph.setData({{ .Data.Values }})
graph.render('chart')
</script>
{{ block "page_label" . }}{{end}}
<div>
<canvas id="chart"></canvas>
</div>
<div id="values">
{{ range .Data.Values }}
<div class="value">{{ format_time .Ts }}</div>