Repeat one chart grammar across groups, then choose shared or local axes according to the intended comparison.
Small multiples: compare groups with honest scales and facet order
A facet is a repeated measurement frame
Small multiples split the same visual grammar into panels, one per group. They reduce line crossings and legend lookup when a single plot has too many series. The gain depends on consistency: each panel should use the same measure, time window, mark type and aggregation rule. A panel for customer tickets and a panel for revenue do not become comparable simply because they share a grid. Declare the measure before arranging panels. Keep a visible label on each panel; color alone is insufficient.
Shared scales answer magnitude questions
If the reader needs to know which depot has the largest delay, a shared y-domain lets equal heights mean equal values. Local y-domains can make a low-volume depot's variation legible, but a steep line then no longer means a larger absolute change. If independent domains are necessary, print the local minimum and maximum in every panel and avoid a headline about cross-panel magnitude. Axis integrity applies to every facet. For percentages, a fixed zero-to-one domain is often an honest baseline; for residuals around zero, a symmetric domain may expose sign and spread better.
Keep the time window and missingness aligned
Shared x-axes help readers distinguish a simultaneous event from a panel-specific shift. A region with no observations on Wednesday should show a gap, not compress its calendar so Thursday occupies Wednesday's position. When groups enter the system at different times, an aligned calendar makes the unequal exposure visible. Time-series gap rules should be applied before faceting. If panels use different time windows by design, label them prominently and avoid visual comparison of positions.
Order panels for the task
Alphabetical order is stable but often unhelpful when inspecting performance. Sorting by a predeclared baseline or current value can put high-risk groups first; automatic resorting on every hover makes the layout hard to track. Record the sort key and freeze it for an analysis session. Do not omit small groups without stating a threshold and the number omitted. Small-sample uncertainty often explains why an apparently extreme panel should receive inspection rather than a confident ranking.
Budget the screen
Thirty tiny panels may be technically complete yet unreadable on a phone. Allow searching or paging through stable groups while keeping the same scale contract. A summary panel can show the total or reference band, but it must follow the same population rules. Test keyboard order and screen-reader panel labels. If each facet needs a unique tooltip, interaction cost grows with the number of panels; prioritize a simple data table for exact values. A chart grid should make comparisons easier, not force the reader to memorize dozens of legends.
Worked contract
from math import isfinite
def facet_domains(series: dict[str, list[float]],
shared: bool) -> dict[str, tuple[float, float]]:
if not series or any(not values for values in series.values()):
raise ValueError("each facet needs observed values")
if any(not isfinite(value) for values in series.values() for value in values):
raise ValueError("non-finite plotted value")
if shared:
values = [value for group in series.values() for value in group]
domain = (min(values), max(values))
return {name: domain for name in series}
return {name: (min(values), max(values)) for name, values in series.items()}
depot_delays = {"north": [18, 47], "south": [3, 8]}
assert facet_domains(depot_delays, True)["south"] == (3, 47)
assert facet_domains(depot_delays, False)["south"] == (3, 8)Performance and operating cost
For N values across G groups, scanning domains takes O(N + G) time. The shared branch stores an extra O(N) flattened list for clarity; a streaming minimum and maximum reduce that auxiliary memory to O(1), while the returned G domains still need O(G) space. Rendering cost scales with both the number of panels and marks. A UI that rerenders every facet after each filter may become slow even when the domain calculation is cheap; memoize by the complete filter and data-version key only when measurements justify it.
Common Mistakes
- Using independent y-domains while claiming one group has the larger magnitude.
- Dropping missing dates and shifting one panel's x positions relative to the rest.
- Reordering facets during interaction without labeling the sort key.
- Suppressing tiny cohorts without reporting how many groups were hidden.
Validation drill
Facet five depot delay series on one weekly calendar. Produce a shared-scale view for absolute comparison and a labeled independent-scale view for within-depot variation; write down which conclusions differ.
Read next
- Axis scales, baselines and labels: prevent a correct number from telling a false story
- Time-series charts: distinguish missing days, zeros and provisional periods
- Uncertainty on charts: show denominators and intervals beside estimates
- Accessible charts: encode meaning without relying on color alone
Continue this visualization path
- Dual-axis charts: test whether two series really need one plot
- Horizon charts: trade vertical space for a harder value lookup
- Bivariate choropleths: map two rates with a readable joint legend
- Probability calibration plots: compare predicted risk with observed frequency
- Precision–recall curves: preserve threshold ties and class prevalence
- Contour plots: respect measured grids and interpolation boundaries
- Population pyramids: compare age bands without losing the denominator
- Lorenz curves: audit ranked shares before quoting a Gini value
- Seasonal subseries plots: compare the same cycle position across years
- Wind roses: map direction, speed and calm conditions without losing the denominator
- Connected scatterplots: preserve time order, gaps and trajectory direction
- Radar charts: normalize metrics before comparing profiles
- Raincloud plots: show the estimate, summary and records together
- Bubble charts: scale the third measure by area
