From 2315154ac732868b8c6cd6cc8320d395903e3ce5 Mon Sep 17 00:00:00 2001 From: tylercchase Date: Wed, 13 Nov 2024 13:23:23 -0500 Subject: [PATCH] fix: use base data for reference setting --- .../components/timeseries-chart/timeseries-chart.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/timeseries-chart/timeseries-chart.component.ts b/src/app/components/timeseries-chart/timeseries-chart.component.ts index 0875f4717..27ee87f06 100644 --- a/src/app/components/timeseries-chart/timeseries-chart.component.ts +++ b/src/app/components/timeseries-chart/timeseries-chart.component.ts @@ -242,7 +242,7 @@ export class TimeseriesChartComponent implements OnInit, OnDestroy { 'temporal_baseline': result.point[key].temporal_baseline, }) this.timeSeriesData.push({ - 'short_wavelength_displacement': result.point[key].short_wavelength_displacement + (this.baseData?.short_wavelength_displacement ?? 0), + 'short_wavelength_displacement': result.point[key].short_wavelength_displacement - (this.baseData?.base ?? 0), 'date': result.point[key].secondary_datetime, 'seriesNumber': result.state.seriesNumber, 'base': result.point[key].short_wavelength_displacement,