{# Bar track region โ€” v0.61.53 (#893). Compact horizontal value bars: per-row label + filled track + value. One row per bucket; bucket comes from the standard `group_by` + `aggregates` single-dim chart pipeline (same data shape as bar_chart). Differences from bar_chart: - Horizontal track (vs vertical bar) - Value pre-formatted server-side via `track_format` Python format spec (so author intent like `"{:.0%}"` works without Jinja filter gymnastics) - Fill computed from `value / track_max` (or auto-max when `track_max:` is omitted) Card safety: region emits zero chrome + zero title. The dashboard slot owns both via region_card. v0.62 CSS refactor: inline Tailwind โ†’ semantic .dz-bar-track-* classes (components/regions.css). #} {% from 'macros/region_wrapper.html' import region_card %} {% call region_card(title) %}
{% if bar_track_rows and bar_track_rows | length > 0 %}
{% for row in bar_track_rows %}
{{ row.label }}
{{ row.formatted_value }}
{% endfor %}

{{ bar_track_rows | length }} rows ยท scale 0โ€“{{ bar_track_max | round(2) }}

{% else %}

{{ empty_message | default("No data available.") }}

{% endif %}
{% endcall %}