{% comment %} One chart, drawn on the server as inline SVG. Geometry arrives from {% chart_svg %}; nothing here computes anything. The colours are `currentColor` and `var(--primary)` only, so the chart follows the theme and a BRAND_COLOR change without a second stylesheet, and `viewBox` plus a width of 100% makes it responsive without a resize listener. `role="img"` plus an aria-label is what a screen reader gets *instead of* the graphic, so the label states the shape and the extremes rather than the pixels. {% endcomment %} {% if kind == "donut" and donut.segments %} {{ label }} {% for segment in donut.segments %} {% endfor %} {{ donut_total }} {% elif kind == "bar" and bars %} {{ label }} {% for bar in bars %} {% endfor %} {% elif line %} {{ label }} {# currentColor, so the stroke follows whatever colour the card sets. #} {% endif %}