{% endif %}
{# ── Chart view (shown for 'chart' and 'both') ────────────────── #}
{% if dm == 'chart' or dm == 'both' %}
{% if not block.group_by_col %}
⚠ No Group by column configured - open the report builder and set a Group by column for this chart.
{% else %}
{{ block.agg_func }}{% if block.agg_col %}({{ block.agg_col }}){% else %}(*){% endif %} grouped by {{ block.group_by_col }}
{% endif %}
{% endif %}
{% endif %}{# end error/no-data #}
{% endif %}{# end block.type #}
{% endfor %}
{% if not blocks %}
This report has no blocks yet. Open the builder to add content.