Browse Source

Merge pull request 'fix autorange for right y-axis' (#49) from fix-autorange-for-right-y-axis into main

Reviewed-on: #49
pull/50/head
rozetko 4 months ago
parent
commit
95343168d9
  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