
        const interpolatedData = [];

        for (
          let time = startTime.getTime();
          time <= now.getTime();
          time += intervalMillis
        ) {
          interpolatedData.push({
            timestamp: new Date(time),
            value: null,
          });
        }

        // Populate the array with actual data and interpolate missing values
        for (let i = 0; i < interpolatedData.length; i++) {
          const currentSlot = interpolatedData[i];
          const matchingDat