.risk_score }},{% endfor %}],
                    backgroundColor: ['#007bff', '#28a745', '#dc3545', '#ffc107'],
                    borderColor: ['#0056b3', '#218838', '#c82333', '#e0a800'],
                    borderWidth: 1
                }]
            },
            options: {
                scales: {
                    y: { beginAtZero: true, max: 100 }
                }
            }
        });
        const ctx2 = document.getElementById('timelineChart').getContext('2d');
        new Chart(ctx2,