From adcff1ece451ac6c8397cfa542f50560e1203384 Mon Sep 17 00:00:00 2001 From: Maksym Yadlovskyi Date: Wed, 22 Oct 2025 11:16:40 +0200 Subject: [PATCH] Fix issue when thresholds shows only partially (#23982) --- changelog/unreleased/issue-23981.toml | 5 +++++ .../components/visualizations/utils/getThresholdShapes.ts | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/issue-23981.toml diff --git a/changelog/unreleased/issue-23981.toml b/changelog/unreleased/issue-23981.toml new file mode 100644 index 0000000000..51c9ea22c5 --- /dev/null +++ b/changelog/unreleased/issue-23981.toml @@ -0,0 +1,5 @@ +type = "f" +message = "Fix issue when thresholds shows only partially." + +issues = ["23981"] +pulls = ["23982"] diff --git a/graylog2-web-interface/src/views/components/visualizations/utils/getThresholdShapes.ts b/graylog2-web-interface/src/views/components/visualizations/utils/getThresholdShapes.ts index 6b5a869006..b53f0f6725 100644 --- a/graylog2-web-interface/src/views/components/visualizations/utils/getThresholdShapes.ts +++ b/graylog2-web-interface/src/views/components/visualizations/utils/getThresholdShapes.ts @@ -63,7 +63,8 @@ const getThresholdShapes = ({ ? formatValueWithUnitLabel(prettified?.value, prettified.unit.abbrev, 0) : value; - const axisStartPosition = getYAxisPosition(mapperAxisNumber[curSeries.function] ?? 0); + const seriesName = curSeries.config.name || curSeries.function; + const axisStartPosition = getYAxisPosition(mapperAxisNumber[seriesName] ?? 1); const shape: Partial = { type: 'line',