mirror of
https://github.com/zaphar/Heracles.git
synced 2025-07-23 04:29:48 -04:00
ui: show the labels for scalar graphs as well
This commit is contained in:
parent
8eab0130f5
commit
6bed94f63e
@ -221,6 +221,12 @@ class TimeseriesGraph extends HTMLElement {
|
||||
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) {
|
||||
// https://plotly.com/javascript/reference/bar/
|
||||
layout["yaxis"] = {
|
||||
tickformat: this.#d3TickFormat
|
||||
};
|
||||
for (const triple of subplot.Scalar) {
|
||||
const labels = triple[0];
|
||||
const meta = triple[1];
|
||||
|
Loading…
x
Reference in New Issue
Block a user