The preview above is the live component gallery. Open it full size to switch between desktop and phone widths.
Every region is computed once, from all rows whose value names it, as a table computes a row: a
ratio such as revenue per customer divides the region’s revenue by its distinct customers, so rows
spelled
CA, California and 06 count each customer once. Rows that name no region, name an
ambiguous one or name a region the map does not draw are left out of the map, the bar list and the
total, and each case gets its own warning. The dashboard period and select filters apply as for any
block, except that a select filter on the map’s own region column keeps every spelling of the
picked region: with California selected, rows spelled CA and 06 stay in, on the map and in
every other block on that column. A picked value that names no region keeps only that exact value.
Tile grid
shape: tiles replaces the boundaries with a grid of equal tiles, each labelled with its state code
and laid out roughly where the state lies. On a boundary map, Texas and Montana dominate and Rhode
Island, Delaware and DC are a few pixels, so a rate looks most like the large, empty states. With
tiles every state carries the same weight, which suits rates, rankings and comparisons between
states. Tiles do not show geography: use the boundaries when where things are matters, such as
regional patterns across a border.
tile: square, the default, is the recommended tile. Squares in rows and columns give the code the
most room, so labels stay legible down to a narrow card, and the grid is easy to scan along a row.
tile: hex keeps more neighbours touching (each tile has six sides), at the cost of tighter labels
and a staggered grid. The page carries no boundary data for a tile map, so it is lighter than a boundary map.
Scale
Sequential classes run from a pale to a dark step of one hue, and diverging ones from one hue
through grey to another; neither uses red and green. When regions share values so that two class
boundaries coincide, the classes merge rather than leave an empty colour in the legend.
What it draws
- The regions coloured by class, with thin card-coloured borders. The US map boxes Alaska, Hawaii and Puerto Rico in insets and, where the card is wide enough for the text, labels the small north-eastern states and DC in a column to the right, each with a leader line and its colour swatch.
- A legend above the map: one swatch per class with every boundary labelled, and a crosshatched “No data” swatch.
- The bar list, highest value first, with the same numbers as the map.
- Hovering or tapping a region or a bar list row highlights both, and the tooltip names the region and gives its value, rank and, for a sum or a count, its share of the total. The arrow keys step through the regions in rank order, and a screen reader hears each one. Screen readers also get a summary and every region in a hidden table.
- A note under the map counts the rows that are not on it and names the values with the most (“Not on the map: 15 rows with Guam, Narnia.”).
hatchmark build --json and hatchmark check --json carry the full match report under maps:
every distinct value of the region column, its rows, and the region it joined or why it joined none.
A row counts once, when it passes the filters of one of the metrics value reads and falls inside
that metric’s window on its own time column. So orders per session counts the rows of both sources,
and shipped per paid order counts a row shipped in the window even if it was ordered before it.