luci-mod-dsl: allow arbitrary number of datasets per graph
authorJan Hoffmann <jan@3e8.eu>
Sat, 28 Jan 2023 18:14:53 +0000 (19:14 +0100)
committerJan Hoffmann <jan@3e8.eu>
Sat, 28 Jan 2023 18:14:53 +0000 (19:14 +0100)
commitfd54b7b7ef2ea41ab55039ed3a01a5abe3f60206
treed16180c5636057aece2510f625eb7544173e25f4
parent7c91e62575e31a1e39aa7a99012a76039358657c
luci-mod-dsl: allow arbitrary number of datasets per graph

Currently the graph code is hard-coded to draw two datsets. Use loops
instead to also allow more or less datasets.

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
modules/luci-mod-dsl/htdocs/luci-static/resources/view/status/dsl/graph.js