{# Histogram region — v0.61.27 (#882). Server-rendered SVG bars over a continuous x-axis. Consumes `histogram_bins` (computed by `_compute_histogram_bins` in workspace_rendering.py from the already-fetched `items` — no extra DB query). Each bin carries `label`, `count`, `low`, `high`. Vertical reference lines (`reference_lines`) overlay the chart at their `value:` x-position — used for grade boundaries, target marks, etc. Card safety: region emits zero chrome + zero title. The dashboard slot owns both via region_card. v0.62 CSS refactor: SVG fill/stroke tokens stay inline (per-element shape colour); host wrapper sized via .dz-histogram-svg + summary line uses .dz-histogram-summary (components/regions.css). #} {% from 'macros/region_wrapper.html' import region_card %} {% call region_card(title) %}
{{ count }} bins · {{ total }} samples · peak {{ max_count }}
{% else %}{{ empty_message | default("No data available.") }}
{% endif %}