fix comparison for d in generateTimeSeries

This commit is contained in:
Francis Cao
2025-09-24 11:07:13 -07:00
parent b777441788
commit ce1120c3ff

View File

@@ -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 };
});
}