diff --git a/ui-ngx/src/app/core/api/entity-data-subscription.ts b/ui-ngx/src/app/core/api/entity-data-subscription.ts index 274e896df5..9c769f3777 100644 --- a/ui-ngx/src/app/core/api/entity-data-subscription.ts +++ b/ui-ngx/src/app/core/api/entity-data-subscription.ts @@ -799,7 +799,7 @@ export class EntityDataSubscription { } else { prevSeries = [0, 0]; } - for (let time = startTime; time < endTime && (this.timer || this.history); time += this.frequency) { + for (let time = startTime; time <= endTime && (this.timer || this.history); time += this.frequency) { const value = dataKey.func(time, prevSeries[1]); const series: [number, any] = [time, value]; data.push(series);