{# il2ks-template: templates/il2ks/components/bar_chart.html v1 - copy this line along when you override #} {% load i18n il2ks %}{% comment %} bar_chart.html ({% bar_chart spec %}, spec = il2ks.web.charts.ChartSpec): an inline-SVG bar chart (FR-WEB-16). Context: spec (title, desc, chart_id, ...), chart (the BarChart layout: bars with SVG paths, y_ticks, x_labels, legend, table_head, table_rows, is_empty). Colours are the --il2-chart-* tokens (site.css), so it follows light and dark mode; each bar has a
{% translate "Nothing to show yet." %}
{% else %} {% if chart.legend %}| {{ spec.title }} | {% for label in chart.table_head %}{{ label }} | {% endfor %}
|---|---|
| {{ category }} | {% for value in values %}{{ value|num }} | {% endfor %}