th > 0) {
                const dailyCanvas = document.getElementById(`monthDailyTransportChart_${year}_${month}`);
                if (dailyCanvas) {
                    const ctx = dailyCanvas.getContext('2d');

                    // Group data by transport mode
                    const transportModes = [...new Set(transportStats.map(item => item.transportMode))];
                    const days = [...new Set(breakdownTransportData.map(item => item.dayOfMonth))].sort((a, b) => a - b);

                  