nvas = document.getElementById(`monthlyTransportChart_${year}`);
                if (monthlyCanvas) {
                    const ctx = monthlyCanvas.getContext('2d');

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

                    const datasets = transportModes.map(mode => 