e9b46e1cd6
Reordered the registration logic so the session is created before any, if any, email errors fire. Fixed a bug where the analytics phrases would load after the graph is drawn.
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> |