Time = new Date(
          now.getTime() - hoursToShow * 60 * 60 * 1000,
        );

        // Create array of minute slots for the specified hours
        const totalMinutes = hoursToShow * 60;
        let hourlySlots = Array.from({ length: totalMinutes }, (_, i) => {
          let slotTime = new Date(startTime.getTime() + i * 60 * 1000);
          return {
            timestamp: slotTime,
            value: null,
          };
        });

        // Fill in actual data points
        data.forEach((d) => 