{% load i18n %} {% for chart in charts %} {% with c=chart.currency %} {% if charts|length > 1 %}
{{ c.name }}
{% endif %}
{{ chart.data|json_script:chart.data_id }}
{% translate 'By asset class' %}
{% include 'investments/fragments/_allocation.html' with shares=chart.classes kind='classes' %}
{% translate 'By currency' %}
{% include 'investments/fragments/_allocation.html' with shares=chart.currencies kind='currencies' %}
{% translate 'Value and invested' %}
{% translate 'Return by investment' %}
{% endwith %} {% empty %} {% endfor %}