{# CHART BLOCK — Image/chart with source attribution. Context: align — Optional alignment for this component's copy; empty means inherit the container's, by ordinary CSS inheritance (#127) subtitle — Optional sub-heading rendered above the chart chart_image_url — Resolved src (hosted URL, cid: reference, or data: URI) chart_alt_text — Alt text for accessibility chart_image_width — Display width in px, or "" for full width. The ATTRIBUTE is what Outlook's Word engine honours; it ignores CSS max-width. The CSS repeats it as a cap on 100%, for a print engine, which reads no attribute (#201). chart_source — Attribution string (optional) caption — The heading line, already numbered by the document anchor — The figure's `id`, empty when it has none (#181) disclosure — Compliance copy beneath the attribution; the key is bare rather than `chart_`-prefixed because all three exhibits include one shared partial legend — The chart's key, already rendered (#337); empty for none #} {% from "common/notes.html" import marked with context %} {% if subtitle %}
{{ subtitle | escape_html }}
{% endif %} {% include "common/qualifier.html" %} {# The caption is a row of the figure table rather than a paragraph above it, so the figure's break rule keeps it with its chart and the anchor on the table lands on the heading a reader was sent to. #}| {{ marked(caption_parts) }} |
|
{# An aligned chart is inline in a zero-leading line box, as image-block.html's
image is and for its reason; an unaligned one keeps the block image. #}
{% if align %}
{% endif %}
{% endif %}
|
{{ marked(chart_source_parts) }}
{% endif %} {% include "common/disclosure.html" %}