We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b864c9 commit 84357f9Copy full SHA for 84357f9
src/apexcharts-card.ts
@@ -833,11 +833,10 @@ class ChartsCard extends LitElement {
833
return;
834
}
835
let data: EntityCachePoints = [];
836
- const offset = (this._seriesOffset[index] || 0) - (this._seriesTimeDelta[index] || 0);
+ const offset =
837
+ this._serverTimeOffset + (this._seriesOffset[index] || 0) - (this._seriesTimeDelta[index] || 0);
838
if (offset) {
839
data = offsetData(graph.history, offset);
- } else if (this._serverTimeOffset) {
840
- data = offsetData(graph.history, this._serverTimeOffset);
841
} else {
842
data = [...graph.history];
843
0 commit comments