Browse Source

fix autorange for right y-axis

pull/49/head
rozetko 2 months ago
parent
commit
2b6fa90af5
  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