| Tab | Charts | Content |
|---|---|---|
| Overview | 5 | Contracts per year · by system (stacked) · share donut · value per year · median contract per year |
| Time & money | 7 | Value per month · seasonality · calendar heatmap · cumulative · year-on-year change · value bands · share of the money · plus the bands table |
| Geography | 4 | Top departments · share donut · municipalities treemap · municipalities by count · plus the departments table |
| Suppliers | 5 | Concentration by value · concentration by count · legal representatives · buyers by contract count · biggest buyers · plus the buyers table |
| Text & records | 1 | Contracts by weekday · plus the description search and the paginated contract table |
Bold entries are new. Five tables replaced one: value bands, departments, buyers, description search, and a contract-level table with pagination — 71,901 contracts for 2024 alone, twelve rows at a time, page 1 of 5,992.
Every aggregation endpoint returns two measures per row: a count and a value. The v1 dashboard drew one of them and dropped the other on the floor. Ten of the new charts are that second number:
| New chart | Came from |
|---|---|
| Value signed per month | por-mes, which already carried valor |
| Share of the money (donut) | por-fuente |
| Municipalities by count | por-municipio |
| Concentration by count | por-contratista |
| Contracts accumulated | por-anio |
| Year-on-year change | por-anio |
| Median contract per year | New endpoint, percentile_approx by group |
Ten charts, zero new queries, zero new round trips: the payloads were already on the wire. The expensive half was the seven aggregations the API did not have — and those were measured at 74 ms for the two heaviest.
| Endpoint | Feeds |
|---|---|
/por-anio-stat | Year totals with percentile_approx(valor, 0.5) — the median trend. |
/por-dia-semana | DAYOFWEEK over rows with a signature date: Saturday 255,834 · Sunday 40,571. |
/por-anio-mes | The calendar heatmap, 2000–2026. |
/distribucion-compradores | Buyers bucketed by contract count: 2,706 have between 21 and 100. |
/por-representante | Top legal representatives as recorded on the contract. |
/contratos | The paginated contract table: year, limit, offset, ordered by value. |
/resumen · /por-fuente · /por-anio-fuente · /por-mes · /por-rango-valor · /por-contratista · /por-municipio | Already existed from Phase 9; three of them feed two charts each now. |
Twenty-two charts in one scroll is a wall, not a dashboard. Five tabs, each loading only what it shows:
| Behaviour | Effect |
|---|---|
enabled: tab === 'x' | A tab's queries do not run until the tab is opened. The first paint makes 3 requests instead of 17. |
| One global Year in the header | Geography and Suppliers read the same year. Two selectors that mirrored each other were worse than one that says so. |
| Pagination, not virtual scroll | Twelve rows per page over 71,901 contracts, with the page counter and the year total in the footer. |
Median contract per year: $18.3 M COP in 2023, $18.0 M in 2024, $21.0 M in 2025. The mean of the same years is three orders of magnitude larger, because a handful of entries carry quadrillions. The gap between the two lines is the story of this dataset.
Signatures cluster Monday to Friday and collapse on Sunday — 255,834 on Saturdays against 40,571 on Sundays. It is the least surprising chart on the page and the one that best shows the data is real activity, not a formality.
First pass found four chart-rendering faults; the second found eight more. Every one was found by looking, none by a failing test.
| Defect | Fix |
|---|---|
| "Municipalities by count" axis read 0B, 0B, 0B | The horizontal-bar builder always formatted pesos; it now takes the axis formatter, and counts are counts. |
| Donut labels collided — "5%7%" | Slices under 8 % lose both label and leader line. |
| Representatives overlapped across rows | Card height raised; labels break instead of truncating. |
| Concentration x labels wrapped to four lines | Single-line ellipsis with 26° rotation. |
| Buyer distribution showed "3k, 3k, 2k, 2k" | Rounding collisions: the axis now prints exact counts. |
| Tab badges undercounted (4 vs 5 charts) | Badges recomputed from the actual panels: 5 · 7 · 4 · 5 · 1. |
| Value-bands table unordered | The six bands are imposed client-side, same list as the chart. |
| Two year selectors that mirrored each other | One control in the header; the cards say "year 2024". |
22 of 22 canvases painted across the five tabs, pagination verified (page 1 → 2, rows and counter both move), the year change repaints chart and table together, zero console messages, all API calls 200.
Five screenshots, one per tab, taken on 2026-11-28 at 1440 × 900 against the running engine. They are not mock-ups: every number is a live answer from StarRocks, and the metadata line in the first one names the version that produced it.
Viewport captures — a chart that continues below the fold is described in its caption.
s/f bucket: 120,778 contracts whose date cannot be trusted.
More than double the charts (22 against 10) and five tables against one; every one fed by a measured endpoint or by a field the endpoint already returned; tabs keep the first paint to three requests; pagination and the year filter verified in a browser; no console error; tsc --noEmit clean; bundle 818 kB / 268 kB gzip.
How those numbers get from a tablet to this page is described in the architecture page.
Not in this phase: authentication, export to CSV, and any streaming. The remaining work in the plan is F10 (one-command packaging) and F7 (the six-minute script).