diff --git a/src/lib/date.ts b/src/lib/date.ts index 7fd376b7..6a967477 100644 --- a/src/lib/date.ts +++ b/src/lib/date.ts @@ -350,7 +350,7 @@ export function generateTimeSeries( return timeseries.map(t => { const { x, y, d } = lookup.get(t) || {}; - return { x: t, d: d || x, y: y ?? null }; + return { x: t, d: d ?? x, y: y ?? null }; }); }