From 92a21e3f7a037d24b5d31fb46c17ca90dc1667f1 Mon Sep 17 00:00:00 2001 From: Aleksei Ilin Date: Wed, 9 Sep 2026 07:17:03 +0200 Subject: [PATCH] fix: skip y-axis band when selected overlay has no point values --- src/view/OverlayYAxisView.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view/OverlayYAxisView.ts b/src/view/OverlayYAxisView.ts index c8acb67f9..d4055a967 100644 --- a/src/view/OverlayYAxisView.ts +++ b/src/view/OverlayYAxisView.ts @@ -66,7 +66,7 @@ export default class OverlayYAxisView extends OverlayVie figures.push({ type: 'text', attrs: { x, y: coordinate.y, text, align: textAlign, baseline: 'middle' }, ignoreEvent: true }) } }) - if (coordinates.length > 1) { + if (coordinates.length > 1 && topY <= bottomY) { figures.unshift({ type: 'rect', attrs: { x: 0, y: topY, width: bounding.width, height: bottomY - topY }, ignoreEvent: true }) } }