Data story
A release told in three slides, each a screen of numbers drawn on the rows. archec story export writes them as one page, and the numbers are those of the rows when it runs. It does the job of the anfra Ecom Bento Slides app.
archec new my-app --kind data-app --template data-story
archec story export my-app/main.arche release -o release.html --open
What it shows#
- The release in one look: the pass rate of 1.4.0 against
REQ-PASS, its runs, its failures, and the pass rate by week for each firmware. - Where it failed: the failures by case and firmware.
- In the field: the units, their faults and uptime, and the faults a week by region.
How it works#
A story step names a screen of a ui with screen:
step s1 "The release in one look" { text "…"; screen Release; dwell 10s }
The page draws that screen's kpis, charts and tables on the rows, in light and
in dark, and shows the one of its theme. A screen named that no ui has is a
data-story error. The story is in app/story.arche, apart from the model.
The data#
data/runs.jsonl: six weeks of bench runs:at,case,firmware,board,status,duration.data/field.csv: a day a row per region:at,region,units,faults,uptime.
Limits#
- The slides are pictures of the numbers when the page was written. Export it again after a new run.
- A slide's screen is drawn as it starts: its filters at their first value, no click.
The model is lib/data-apps/data-story/main.arche, and the gallery lists
the other templates.