fix: actually do the filtering for scalar graphs

This commit is contained in:
Jeremy Wall 2024-02-21 17:20:07 -05:00
parent 7b350a6612
commit ef070f18d3

View File

@ -290,8 +290,14 @@ class TimeseriesGraph extends HTMLElement {
layout["yaxis"] = { layout["yaxis"] = {
tickformat: this.#d3TickFormat tickformat: this.#d3TickFormat
}; };
for (const triple of subplot.Scalar) { loopScalar: for (const triple of subplot.Scalar) {
const labels = triple[0]; const labels = triple[0];
for (var label in labels) {
var show = this.#filteredLabelSets[label];
if (show && !show.includes(labels[label])) {
continue loopScalar;
}
}
const meta = triple[1]; const meta = triple[1];
const series = triple[2]; const series = triple[2];
var trace = { var trace = {