fix autorange for right y-axis #49

Merged
rozetko merged 1 commits from fix-autorange-for-right-y-axis into main 5 months ago
  1. 4
      src/models/state.ts

4
src/models/state.ts

@ -187,7 +187,7 @@ export class PodState<T extends Serie, O extends Options> {
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<T extends Serie, O extends Options> {
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

Loading…
Cancel
Save