Fix issue when thresholds shows only partially (#23982)

This commit is contained in:
Maksym Yadlovskyi
2025-10-22 11:16:40 +02:00
committed by GitHub
parent 6398b77d64
commit adcff1ece4
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
type = "f"
message = "Fix issue when thresholds shows only partially."
issues = ["23981"]
pulls = ["23982"]

View File

@@ -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<Shape> = {
type: 'line',