= document.getElementById('tempChart');
            container.innerHTML = '';
            const visibleItems = calculateVisibleItems();
            
            const allTemps = hoursData.map(item => parseInt(item.temp));
            const minTemp = Math.min(...allTemps);
            const maxTemp = Math.max(...allTemps);
            const range = maxTemp - minTemp;
            
            const visibleData = hoursData.slice(currentHourIndex, currentHourIndex + visibleItems);
            visibleData.forEac