Charts
Scatter chart
The relationship between two measurements across many runs, with limits, a fit line and one point called out.
npx dtheo@latest add scatter-chartGain against overshootRA-14 hip pitch · 412 step tests
Use the arrow keys to move between points from left to right. Hold Shift for larger steps.
- Over limit12
- Within limit400
When to use
- Gain against overshoot, temperature against current, any two measures per run
- Spotting outliers
- A measure over time: use Line chart
- One measure’s spread: use Histogram
- More than three groups: facet into several charts
API
points- `{ x, y, group?, label? }` for every point.
ScatterPoint[] groups- Up to three groups with label and tone. The first listed draws on top.
ScatterGroup[] limits- Limit lines on either axis; the out-of-spec side gets a faint wash.
ScatterLimit[] highlight- The label of a point to call out.
string fit= false- Draw a least-squares line and its r².
boolean
Keyboard
- Arrow leftright
- Move to the next point, left to right
- Shift + arrow
- Skip a tenth of the points
- HomeEnd
- Jump to the first or last point
- Escape
- Clear the readout
- Points draw on a canvas, so thousands stay fast; the active point is announced in words.
- Groups carry a label and a count in the legend, never color alone.