{% set total = status_data.values()|sum %} {% set offset = namespace(val=0) %} {% for status, count in status_data.items() %} {% set pct = (count / total * 100) if total > 0 else 0 %} {% set dash = (pct / 100 * 251.3)|round(1) %} {% set offset.val = offset.val + pct %} {% endfor %} {% if total == 0 %} {% endif %}
{{ total }}
Total
{% for status, count in status_data.items() %}
{{ status_labels[status] }} {{ count }} ({{ "%.1f"|format(count / total * 100) if total > 0 else 0 }}%)
{% endfor %}