From 9a89412fc82cf31bbad0f1ac5c1a54ffa946a112 Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Fri, 16 Feb 2024 15:20:39 -0500 Subject: [PATCH] fix: set trace name for bar charts --- static/lib.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/lib.js b/static/lib.js index 04716be..37733da 100644 --- a/static/lib.js +++ b/static/lib.js @@ -179,6 +179,9 @@ class TimeseriesGraph extends HTMLElement { x: [], y: [] }; + if (labels[this.#label]) { + trace.name = labels[this.#label]; + }; if (labels[this.#label]) { trace.x.push(labels[this.#label]); };