Removed graph plotting data
This commit is contained in:
parent
6629b834fd
commit
b22e99a072
@ -2,19 +2,8 @@
|
|||||||
{{ $version := .VERSION }}
|
{{ $version := .VERSION }}
|
||||||
<link rel="stylesheet" type="text/css" href="/css/{{ .VERSION }}/datapoints.css">
|
<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}}
|
{{ block "page_label" . }}{{end}}
|
||||||
|
|
||||||
<div>
|
|
||||||
<canvas id="chart"></canvas>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="values">
|
<div id="values">
|
||||||
{{ range .Data.Values }}
|
{{ range .Data.Values }}
|
||||||
<div class="value">{{ format_time .Ts }}</div>
|
<div class="value">{{ format_time .Ts }}</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user