|
|
@ -42,9 +42,9 @@ export class PodState<T extends TimeSerie, O extends Options> { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected setInitialRanges(): void { |
|
|
|
protected setInitialRanges(): void { |
|
|
|
this._xValueRange = [this.minValueX, this.maxValueX]; |
|
|
|
this._xValueRange = [this.getMinValueX(), this.getMaxValueX()]; |
|
|
|
this._yValueRange = [this.minValueY, this.maxValueY]; |
|
|
|
this._yValueRange = [this.getMinValueY(), this.getMaxValueY()]; |
|
|
|
this._y1ValueRange = [this.minValueY1, this.maxValueY1]; |
|
|
|
this._y1ValueRange = [this.getMinValueY1(), this.getMaxValueY1()]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected initScales(): void { |
|
|
|
protected initScales(): void { |
|
|
@ -137,7 +137,7 @@ export class PodState<T extends TimeSerie, O extends Options> { |
|
|
|
this._transform.k = transform.k !== undefined ? transform.k : this._transform.k; |
|
|
|
this._transform.k = transform.k !== undefined ? transform.k : this._transform.k; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
get minValueY(): number { |
|
|
|
public getMinValueY(): number { |
|
|
|
if(this.isSeriesUnavailable) { |
|
|
|
if(this.isSeriesUnavailable) { |
|
|
|
return DEFAULT_AXIS_RANGE[0]; |
|
|
|
return DEFAULT_AXIS_RANGE[0]; |
|
|
|
} |
|
|
|
} |
|
|
@ -154,7 +154,7 @@ export class PodState<T extends TimeSerie, O extends Options> { |
|
|
|
return minValue; |
|
|
|
return minValue; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
get maxValueY(): number { |
|
|
|
public getMaxValueY(): number { |
|
|
|
if(this.isSeriesUnavailable) { |
|
|
|
if(this.isSeriesUnavailable) { |
|
|
|
return DEFAULT_AXIS_RANGE[1]; |
|
|
|
return DEFAULT_AXIS_RANGE[1]; |
|
|
|
} |
|
|
|
} |
|
|
@ -171,7 +171,7 @@ export class PodState<T extends TimeSerie, O extends Options> { |
|
|
|
return maxValue; |
|
|
|
return maxValue; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
get minValueX(): number { |
|
|
|
public getMinValueX(): number { |
|
|
|
if(this.isSeriesUnavailable) { |
|
|
|
if(this.isSeriesUnavailable) { |
|
|
|
return DEFAULT_AXIS_RANGE[0]; |
|
|
|
return DEFAULT_AXIS_RANGE[0]; |
|
|
|
} |
|
|
|
} |
|
|
@ -189,7 +189,7 @@ export class PodState<T extends TimeSerie, O extends Options> { |
|
|
|
return minValue; |
|
|
|
return minValue; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
get maxValueX(): number { |
|
|
|
public getMaxValueX(): number { |
|
|
|
if(this.isSeriesUnavailable) { |
|
|
|
if(this.isSeriesUnavailable) { |
|
|
|
return DEFAULT_AXIS_RANGE[1]; |
|
|
|
return DEFAULT_AXIS_RANGE[1]; |
|
|
|
} |
|
|
|
} |
|
|
@ -206,7 +206,7 @@ export class PodState<T extends TimeSerie, O extends Options> { |
|
|
|
return maxValue; |
|
|
|
return maxValue; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
get minValueY1(): number { |
|
|
|
public getMinValueY1(): number { |
|
|
|
if(this.isSeriesUnavailable || this.options.axis.y1 === undefined || this.options.axis.y1.isActive === false) { |
|
|
|
if(this.isSeriesUnavailable || this.options.axis.y1 === undefined || this.options.axis.y1.isActive === false) { |
|
|
|
return DEFAULT_AXIS_RANGE[0]; |
|
|
|
return DEFAULT_AXIS_RANGE[0]; |
|
|
|
} |
|
|
|
} |
|
|
@ -223,7 +223,7 @@ export class PodState<T extends TimeSerie, O extends Options> { |
|
|
|
return minValue; |
|
|
|
return minValue; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
get maxValueY1(): number { |
|
|
|
public getMaxValueY1(): number { |
|
|
|
if(this.isSeriesUnavailable || this.options.axis.y1 === undefined || this.options.axis.y1.isActive === false) { |
|
|
|
if(this.isSeriesUnavailable || this.options.axis.y1 === undefined || this.options.axis.y1.isActive === false) { |
|
|
|
return DEFAULT_AXIS_RANGE[1]; |
|
|
|
return DEFAULT_AXIS_RANGE[1]; |
|
|
|
} |
|
|
|
} |
|
|
|