{# _throughput_overlay.html — Throughput trend overlay chart (Task F3). Renders current-period bars (solid accent) overlaid with previous-period ghost bars (accent-subtle), plus a legend showing totals and delta. Expected context: trend_throughput_overlay — { current: [{bucket, count}, ...], previous: [{bucket, count}, ...], current_total: int, previous_total: int, delta_pct: float | None, } since_days — int, for subtitle throughput_bucket — "day" or "week", used to label the x-axis #} {%- set ov = trend_throughput_overlay -%} {%- set n = ov.current | length -%} {%- set max_count = namespace(val=1) -%} {%- for b in ov.current %} {%- if b.count > max_count.val %}{%- set max_count.val = b.count %}{%- endif %} {%- endfor %} {%- for b in ov.previous %} {%- if b.count > max_count.val %}{%- set max_count.val = b.count %}{%- endif %} {%- endfor %} {%- set has_current = ov.current_total > 0 or ov.previous_total > 0 -%}