{% set i = 0 %}
{% for label,stat in stats %}
{% if i %}
{% set pct_0 = (stat[0] / (stat[0] + stat[1])) * 100 %}
{% set pct_1 = (stat[1] / (stat[0] + stat[1])) * 100 %}
{% set label_0 = stat[0] %}
{% set label_1 = stat[1] %}
{% else %}
{% set pct_0 = stat[0] %}
{% set pct_1 = stat[1] %}
{% set label_0 = pct_0 %}
{% set label_1 = pct_1 %}
{% endif %}
{% if pct_0 >= 33.33 or i %}{{ label_0 }}{% if not i %}%{% endif %}{% else %} {% endif %}
{% if pct_0 < 33.33 and (not i or not label_0) %}{{ label_0|default(0) }}{% if not i %}%{% endif %}{% endif %}
{{ label }}
{% if pct_1 >= 33.33 or i %}{{ label_1 }}{% if not i %}%{% endif %}{% else %} {% endif %}
{% if pct_1 < 33.33 and (not i or not label_1) %}{{ label_1|default(0) }}{% if not i %}%{% endif %}{% endif %}
{% set i = i + 1 %}
{% endfor %}