{#- Grouped temporal counts (grouped_periods) on a Tabalyst Insights Date or Category page. Every figure is in a table that reads without JavaScript. -#} {% macro by_grouped_time(grouped_times, name, number, mode, library, ident='grouped-time', title='Over time by category') -%}

{{ number }} / {{ title }}

{% if mode == 'date' %}{{ name }} over time by category{% else %}{{ name }} over time{% endif %}

{% if mode == 'date' %}Exact record counts per period and category.{% else %}Exact record counts of {{ name }} across each date column's periods.{% endif %} Association is measured by Cramér's V.

This chart needs JavaScript and a network connection to load {{ library.name }}. The tables below hold the same figures.

0 %}hidden{% endif %}>No comparable records with both a date and a category.

{% for g in grouped_times %}
{{ g.display }}({{ g.total_periods | count }} periods, {{ g.categories | length }} categories){{ g.counted | count }} of {{ g.rows | count }} rows placed ({{ g.granularity }}{% if g.first and g.last %}, {{ g.first }} to {{ g.last }}{% endif %}).{% if g.cramers_v != '-' %} Cramér's V {{ g.cramers_v }}{% if g.corrected_v != '-' %} ({{ g.corrected_v }} corrected){% endif %}{% if g.association_note %}, {{ g.association_note }}{% endif %}.{% elif g.association_note %} No score: {{ g.association_note }}.{% endif %}{% for label, value in g.left_out %} {{ label }}: {{ value }}.{% endfor %} {% if g.categories %}

{% for cat in g.categories %}{{ cat.label }} {{ cat.total }} ({{ cat.share }}){% endfor %}

{% endif %} {% if g.periods %}
{% for cat in g.categories %}{% endfor %} {% for r in g.periods %}{% for val in r.counts %}{% endfor %}{% endfor %}
Period
Total
{{ cat.label }}
{{ r.period }}{{ r.total }}{{ val }}
{% if g.more %}

{{ g.more | count }} more periods are in the report JSON.

{% endif %} {% else %}

No comparable records with both a date and a category.

{% endif %}
{% endfor %}
{%- endmacro %}