{# @description How many records of each type, as bars in the type's colour, samples and measurements in their own groups. #}
{# @prop mix:dict | description:"{samples: [(label, n)], measurements: [(label, n)], max}." #}
{% load i18n humanize %}
{% translate "Records by type" %}
{% if mix.samples %}
{% translate "Samples" %}
{% endif %}
{% for label, n in mix.samples %}
{{ label }}{{ n|intcomma }}
{% endfor %}
{% if mix.measurements %}
{% translate "Measurements" %}
{% endif %}
{% for label, n in mix.measurements %}