</table>
            </div>
        </div>
    </div>
</div>
{% endblock %}

{% block scripts %}
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
    document.addEventListener('DOMContentLoaded', function() {
        // Portfolio Performance Chart
        const portfolioData = {{ portfolio_data|tojson }};
        
        if (portfolioData.length > 0) {
            const portfolioCtx = document.getElementById('portfolioChart').getContext('2d');
            const portfolioNames = portfo