Chart canvas
A canvas of charts the reader builds on a month of motor telemetry. Add a block, pick its metric and its dimension, move it, remove it; a click on a bar filters every other block. It does the job of the anfra Canvas builder.
archec new my-app --kind data-app --template chart-canvas
archec ui preview my-app/main.arche --serve
What it shows#
- A filter bar: the last 30 days, a site, a firmware.
canvas board "Your charts" { blocks Telemetry }: the blocks. Each is a number, a bar, a line or a donut, of a metric of the dataset (or a count, or a measure's average), by one of its dimensions or by time.◀and▶move a block; dragging one onto another puts it there;×removes it.- A click on a bar or a slice filters the other blocks; its chip clears it.
- Three tiles under it: the peak motor temperature, the average current, the faults.
The canvas opens on four blocks and is kept in the browser.
The data#
data/telemetry.csv: every two hours for a month, per board and site:at,board,site,firmware,motor_temp,current,rpm,faults.
Limits#
- A block is one metric by one dimension: no split, no target.
- The canvas is the reader's own: it is not written to the model.
The model is lib/data-apps/chart-canvas/main.arche, and the gallery lists
the other templates.