16 lines
331 B
HTML
16 lines
331 B
HTML
|
|
<script>
|
|
let rawLabels = [{{range .Graph.Labels}}
|
|
{{.}},{{end}}
|
|
];
|
|
let seriesData = [{{range .Graph.Series}}[{{range .}}
|
|
{{.}},{{end}}
|
|
],{{end}}
|
|
];
|
|
let legendNames = [{{range .Graph.Legends}}
|
|
{{.}},{{end}}
|
|
];
|
|
addInitHook("after_phrases", () => {
|
|
buildStatsChart(rawLabels, seriesData, "{{.TimeRange}}",legendNames);
|
|
});
|
|
</script> |