From d6657519f1e61801e48bb6b0235f2145348b482d Mon Sep 17 00:00:00 2001 From: Katrin Yordanova Date: Wed, 6 Dec 2023 17:01:12 +0200 Subject: [PATCH] Fix yAxis min and max values causing issues when timeline is set to yAxis or xyAxis --- lib/js/src/compose/types/chart/chart.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/js/src/compose/types/chart/chart.ts b/lib/js/src/compose/types/chart/chart.ts index 611aaf1a2..b75536676 100644 --- a/lib/js/src/compose/types/chart/chart.ts +++ b/lib/js/src/compose/types/chart/chart.ts @@ -95,8 +95,8 @@ export default class Chart extends BaseChart { type: yType === 'linear' ? 'value' : 'log', position, nameLocation: labelPosition, - min: beginAtZero ? 0 : min || undefined, - max: max || undefined, + min: beginAtZero ? 0 : Number(min) || undefined, + max: Number(max) || undefined, axisLabel: { interval: 0, overflow: 'break',