{# Inline Chart.js horizontal bar — findings by severity (probes per agent). The bar is "click-to-scroll" — onClick handler in narrative_charts.js scrolls smoothly to the matching sev-bucket inside the findings section. Severity colors are read from CSS custom properties so light/dark mode flips for free. #} {% set _severities = ['critical', 'high', 'medium', 'low'] %} {% set _severity_rows = [] %} {% for sev in _severities %} {% set _ = _severity_rows.append({ 'severity': sev, 'label': sev | upper, 'count': counts[sev] | default(0), 'anchor': '#nr-sev-' ~ sev, }) %} {% endfor %} {% set _bar_payload = {'rows': _severity_rows} %}
FIG. 2

Findings by severity

Click any bar to jump to that severity grouping below.

Show data table {% for row in _severity_rows %} {% endfor %}
SeverityCount
{{ row.label }} {{ row.count }}