|
|
@ -690,6 +690,7 @@ export class TbTimeSeriesChart { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private updateSeriesData(updateScale = false): void { |
|
|
private updateSeriesData(updateScale = false): void { |
|
|
|
|
|
if (!this.timeSeriesChart.isDisposed()) { |
|
|
this.updateSeries(); |
|
|
this.updateSeries(); |
|
|
if (updateScale && this.updateYAxisScale(this.yAxisList)) { |
|
|
if (updateScale && this.updateYAxisScale(this.yAxisList)) { |
|
|
this.timeSeriesChartOptions.yAxis = this.yAxisList.map(axis => axis.option); |
|
|
this.timeSeriesChartOptions.yAxis = this.yAxisList.map(axis => axis.option); |
|
|
@ -697,6 +698,7 @@ export class TbTimeSeriesChart { |
|
|
this.timeSeriesChart.setOption(this.timeSeriesChartOptions); |
|
|
this.timeSeriesChart.setOption(this.timeSeriesChartOptions); |
|
|
this.updateAxes(); |
|
|
this.updateAxes(); |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
private updateSeries(): void { |
|
|
private updateSeries(): void { |
|
|
this.timeSeriesChartOptions.series = generateChartData(this.dataItems, this.thresholdItems, |
|
|
this.timeSeriesChartOptions.series = generateChartData(this.dataItems, this.thresholdItems, |
|
|
|