Fleet cohorts
The units shipped each month, and how often they fail in each month after. A row of the heatmap is a month's shipments, a column a month in service: a bad batch is a row that stays dark. It does the job of the anfra Cohort Heatmap.
archec new my-app --kind data-app --template fleet-cohorts
archec ui preview my-app/main.arche --serve
What it shows#
- A filter bar: a board, a region.
- Three tiles: the units, the faults per 1000 hours against
REQ-FAULTS, the hours in service. - The heatmap of the fault rate, shipped month by months in service. A click on a cell filters the rest to that batch and that month.
- The fault rate by board, and by months in service, with the requirement's limit.
- The units with the most faults.
The data#
data/units.csv: a row per unit and month in service:serial,cohort(the month it shipped),month(1 for its first month),board,region,hours,faults. A field log orarchec livegives the same once grouped by month.
Limits#
- The months in service are a column of the rows, not worked out from dates. Give your rows that column.
- The sample's March batch fails more often on purpose.
The model is lib/data-apps/fleet-cohorts/main.arche, and the gallery lists
the other templates.