Visual Explainer
Purpose
Convert structured council report data into high-readability HTML that is suitable for executive review and downstream PDF rendering.
Inputs
report_payloadJSON fromcouncil-output-reportchart_specand optionalchart_assetoutputs fromchart-visualization- optional
supporting_metricsJSON
Workflow
- Build HTML sections in this order:
- executive headline + narrative
- top findings table
- chart blocks with captions (window + source)
- action board
- open questions + appendix
- Wire charts:
- use chart assets when available
- if assets are unavailable, embed deterministic chart spec snippets as placeholders
- Produce semantic, print-friendly markup:
- use section wrappers and explicit heading hierarchy
- avoid dense single-page layouts
- keep table columns concise and stable
Output Contract
Return:
report_html(full HTML string or path)layout_notesarray (important structure decisions)render_warningsarray