Revenue Dashboard
A two-page quarterly board report: a dashboard page of KPI tiles with sparklines, charts and a data-bound segment table, rendered as native editable vector, then the quarter's highlights, the definitions and the board's approval, each signatory on a card of their own.
- SVG charts. The donut, the trailing five quarters as bars, the trend line and a sparkline per KPI emit native vector in both PDF and DOCX.
- One JSON source. It produces both the PDF and the DOCX, with no manual porting.
- KPI tiles, segment table and highlights. They are data-bound to the companion data file.
Features used: watermarks, columns, tables, rules, SVG, barcodes (datamatrix), form fields (checkbox, text), encryption (aes256), links, data binding, headers and footers
- Output
- Template
- Data
How it's built
KPI tiles: one styled column per tile
The four tiles are one columns block with widths [1, 1, 1, 1]. Each column opens with a bare { "style": "kpiBlue" } (or kpiCyan, kpiIndigo, kpiTeal): it draws nothing and gives the column its fill, border, rounded corners and padding. Under it come the label, the value and its change from the data file, and a 100 × 22 sparkline (Columns, Data binding).
{ "columns": { "style": "kpiRow", "widths": [1, 1, 1, 1], "rows": [
[
{ "style": "kpiBlue" },
{ "p": "TOTAL REVENUE", "style": "kpiLabel" },
{ "p": "$data.kpis.totalRevenue", "style": "kpiValBlue" },
{ "p": "▲ $data.kpis.totalRevenueDelta", "style": "kpiDelta" },
{ "svg": { "viewBox": [100, 22], "style": "spark", "children": [
{ "path": { "d": "M 2 20 L 98 20", "style": "sparkBase" } },
{ "path": { "d": "M 2.0 17.0 L 26.0 13.45 L 50.0 10.28 L 74.0 6.92 L 98.0 3.0", "style": "sparkBlue" } },
{ "circle": { "cx": 98.0, "cy": 3.0, "r": 2.2, "style": "sparkDotBlue" } }
] } }
],
…
] } }
Charts drawn from shapes
Each chart is an svg of plain shapes (SVG). A donut segment is one filled path: an outer arc of radius 56, a line inward, an inner arc of radius 33 back, closed. The three segments take segEnt, segMid and segSmb, whose white stroke parts them.
{ "path": { "d": "M 74 60 A 56 56 0 1 1 66.98 171.56 L 69.86 148.74 A 33 33 0 1 0 74 83 Z", "style": "segEnt" } }
The bars are rects rounded by rx, over grid paths. The monthly trend is one list of points drawn twice: closed down to the baseline as the trendArea fill, and open as the trendLine stroke, with a circle at each month. The coordinates are written out, not read from the data file, so charting other figures means computing the points. Each sparkline, and the svg holding the donut and the bars, carries a title and a desc that lists the values drawn.
Approval fields and protection
The segment table binds each cell by index, from $data.segments.0.name to $data.segments.2.qoq. The approval cards hold form fields written as shortcodes, such as [textfield, cfoSignature, '', 220|18] and [checkbox, figuresApproved, false, 11|11] (Form fields). The file is encrypted with an owner password and an empty userPassword, so it opens without one while the permissions hold: printing, form filling and comments are allowed, copying, modification and assembly are not (Encryption).
"encryption": {
"encryptionType": "aes256",
"userPassword": "",
"ownerPassword": "aurora-board-2026",
"permissions": { "print": true, "fillForm": true, "annotate": true, "modify": false, "copy": false, "assemble": false }
}