{# Vertical bar chart - top N most expensive jobs by cost. Built on the same ECharts + ChartUtils helpers governor-web uses for the daily spend trend (packages/web/.../static/js/dashboard-charts.js). Audit shows per-job spend instead of per-day because the audit window doesn't have a meaningful date axis (single point-in-time scan). #}
{% from "components/_section_title.html" import section_title %}
{{ section_title( "Top " ~ (chart_jobs | length) ~ " Spenders", description="The 20 highest-cost logical jobs in the scan window, aggregated across every execution (by destination table for builds, by normalized query hash for consumption). Coloured by issue count. Select a bar to open its opportunity." ) }}
{% if chart_jobs %} {# Legend - bar colour encodes how many detection rules fired on each job. Pairs with the per-bar tooltip "Issues: N" line. #}
No issues 1-2 issues 3+ issues
{% else %}

No spend data available yet.

{% endif %}
{% if chart_jobs %} {% endif %}