Reading a box score without losing the game
A practical guide to player lines, team totals, and the small differences that matter in a stats interface.
2026-11-29 · PreciseData · 2 min read
A result tells you which side finished ahead. A box score tells you how the recorded contributions were distributed. The difference matters when a reader clicks from a scoreboard into a game detail page.
Give each row a subject
In a basketball box score, a player's points, assists, and rebounds describe that player's line. A team row describes the team. Keep the two kinds of rows separate in your model. Adding a team total to a sum of player rows can double the value on a chart.
Keep the event ID with every row as well. A player's season average and their line in one game can use the same column heading while answering different questions. On a game page, the event and player IDs make that context explicit.
Preserve the denominator
A shooting percentage summarizes makes and attempts. Imagine one appearance with one make on one attempt and another with one make on nine attempts. Together, the player made two of ten. Averaging the two game percentages gives a different result.
If a table may later support season totals, store makes and attempts. Compute the displayed percentage from the totals for the selected games. A row with no attempts can show a dash in the percentage column while still showing zero attempts.
Keep a missing value visible
A recorded zero belongs in a total. An unreported field tells the reader that the total may be incomplete. Preserve that difference from the first import through the final table. A player who did not appear also deserves a different label from a player who appeared and recorded zero points.
Offer the sequence separately
The box score can identify the leading scorer, but a sequence of plays is needed to tell how a lead changed hands. A game page can support both readings by linking from team totals to the play timeline when the competition carries full coverage. Coverage levels · Box score reference