Charts overview
Non-pitch charts — components that draw football data without a pitch underneath it.
Everything under Overlays is a layer inside a <Pitch>, positioned in a
provider's own coordinates. The components here are not. They draw football data that has no
location on a pitch: a quantity accumulating over match minutes, which side was on top at each
point of it, or a player's percentile profile. So they are roots in their own right.
What that changes
Three things, and they are the same three every time:
- They are siblings of
<Pitch>, not children. Rendering one inside a<Pitch>is a mistake, not a composition. They have their own coordinate systems and own them entirely. - There is no
typeprop.typenames a provider's pitch grid. A chart with no pitch has no grid to name, so its scales come from the data instead. - Their escape hatch is their own hook.
usePitch()gives you the pitch transform; each chart exposes the equivalent for its own space —useRaceChart()for<RaceChart>,useMomentumChart()for<MomentumChart>,useRadarChart()for<RadarChart>,usePizzaChart()for<PizzaChart>.
Everything else carries over unchanged. Accessors work the same way, responsive-by-default works the
same way, and theming is still CSS variables only — the chart tokens sit in the same --pitch-*
namespace as the rest, because that namespace is PitchKit's, not the grass's.
Available
| Component | What it draws |
|---|---|
<RaceChart> | A running total over match minutes, as a step line |
<MomentumChart> | Who had the upper hand, minute by minute, as bars with an event icon row |
<RadarChart> | A player profile: one axis per metric, each on its own range |
<PizzaChart> | A percentile pizza: one slice per metric, coloured by group |
The goal-mouth view, <GoalView>, is not here. It plots shots in a
provider's own goal-mouth coordinates and takes a type, so it sits beside <Pitch> under
Components.