Bumped to v8
This commit is contained in:
parent
787009c621
commit
ff1c848c58
3 changed files with 24 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue