From 2b6fa90af515c461516d324f426065ef9f79dce8 Mon Sep 17 00:00:00 2001 From: rozetko Date: Thu, 11 Jul 2024 15:36:10 +0300 Subject: [PATCH] fix autorange for right y-axis --- src/models/state.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/state.ts b/src/models/state.ts index c9b972e..bb2c726 100755 --- a/src/models/state.ts +++ b/src/models/state.ts @@ -187,7 +187,7 @@ export class PodState { if(this.coreOptions.axis.y1.range !== undefined) { return min(this.coreOptions.axis.y1.range); } - return this.coreSeries.minValueY; + return this.coreSeries.minValueY1; } public getMaxValueY1(): number { @@ -197,7 +197,7 @@ export class PodState { if(this.coreOptions.axis.y1.range !== undefined) { return max(this.coreOptions.axis.y1.range); } - return this.coreSeries.maxValueY; + return this.coreSeries.maxValueY1; } // getters for correct transform -- 2.34.1