The preview above is the live component gallery. Open it full size to switch between desktop and phone widths.
Every metric is computed per category from that category’s rows, as in a table: a ratio such as
average order value divides the category’s revenue by its orders, never averages the orders’
values. The dashboard period and select filters apply to all three metrics, over one window: x, y
and size all end at the earliest horizon among their sources, so a point never pairs days one
metric has with days another lacks. The subtitle states that window (“through Nov 1, 2026” when the
period is all time, since dated metrics still stop at their last complete day), and names a metric
without a time column as read “over all time” (just “All time” when none has one). A scatter needs
no time column.
Colour
color colours each point by a column of its rows and adds a key above the plot, so a group
stands out without a chart per group.
by and color together, and each one’s metrics come from its own rows.
color should have one value per category, such as a region for a country. When a category has
rows under several values it becomes one point per value, each with part of its rows, and the build
warns (HM4072) when more than one of those points is drawn, after limit and the filters. A part
left out because its x or y has no value is counted by HM4070 instead.
What it draws
- One circle per category in the first series colour (or its
colorvalue’s colour), 70% opaque with a thin card-coloured edge, so overlapping points stay visible. Withoutsizeevery dot has a 4 px radius; with it the area is proportional to the value (3 to 14 px radius, 10 on narrow cards), and “Bubble size: Revenue” names the metric above the plot. - Linear axes around the data. An axis starts at zero only when zero is close to the data (the smallest value is under a third of the largest); otherwise it spans the data with nice ticks, so average order values from $40 to $120 fill the plot. A vertical zero line marks an x axis that crosses zero; the y axis has gridlines and a zero baseline as in bar and line charts.
- The y metric’s name above the plot on the left, the x metric’s under the axis on the right.
- The names of up to five points (three on narrow cards) next to them: the largest by size, or the highest and lowest on each axis without size. A name is drawn only where it overlaps no other point or name, and is never shortened; every point’s name is in its tooltip.
- Hover or tap picks the bubble under the pointer (the one drawn on top where bubbles overlap), else the nearest point within 24 px, and rings it; the tooltip names the category and lists x, y and size in full. The arrow keys step through the points from left to right, and a screen reader hears each one (“Germany, Orders 1,482, Average order value $88.90, Revenue $131,800”). Screen readers also get a summary and every point in a hidden table.
- The subtitle says “top 50 of 212” when
limitcut points, and how many categories have no value to place them at. - An empty period keeps the axes’ titles and says “No data in this period” (HM4013), or “No complete day yet” when a metric’s source has no complete day in the period (HM4024).