fix: set trace name for bar charts

This commit is contained in:
Jeremy Wall 2024-02-16 15:20:39 -05:00
parent 349003bd6f
commit 9a89412fc8

View File

@ -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]);
};