ui: show the labels for scalar graphs as well

This commit is contained in:
Jeremy Wall 2024-02-21 16:22:02 -05:00
parent 8eab0130f5
commit 6bed94f63e

View File

@ -221,6 +221,12 @@ class TimeseriesGraph extends HTMLElement {
this.populateFilterData(labels); this.populateFilterData(labels);
} }
} }
if (subplot.Scalar) {
for (const triple of subplot.Scalar) {
const labels = triple[0];
this.populateFilterData(labels);
}
}
} }
} }
@ -281,6 +287,9 @@ class TimeseriesGraph extends HTMLElement {
} }
} else if (subplot.Scalar) { } else if (subplot.Scalar) {
// https://plotly.com/javascript/reference/bar/ // https://plotly.com/javascript/reference/bar/
layout["yaxis"] = {
tickformat: this.#d3TickFormat
};
for (const triple of subplot.Scalar) { for (const triple of subplot.Scalar) {
const labels = triple[0]; const labels = triple[0];
const meta = triple[1]; const meta = triple[1];