Connected scatter
Points joined in time order on two axes.
The line runs from 2012 to 2025.
| Period | Minutes a day | Satisfaction |
|---|---|---|
| 2012 | 34 | 52 |
| 2013 | 36.75473618492925 | 57.59568091058323 |
| 2014 | 39.25123616657737 | 61.6428923354891 |
| 2015 | 41.294488970528924 | 63.178600471267856 |
| 2016 | 42.8004543390165 | 62.18930500872769 |
| 2017 | 43.8166387170287 | 59.616143245605436 |
| 2018 | 44.510464017731714 | 56.99907076880359 |
| 2019 | 45.128276899082834 | 55.894644653893266 |
| 2020 | 45.93503451032256 | 57.28753007735803 |
| 2021 | 47.14943374113678 | 61.21822425000538 |
| 2022 | 48.89036659574109 | 66.76774548416711 |
| 2023 | 51.14781128374514 | 72.40507605663657 |
| 2024 | 53.78528590396236 | 76.56599983742316 |
| 2025 | 56.57326397379319 | 78.24449136501832 |
When to use
- Showing how two measures move together.
When not to use
- Readers are unfamiliar with the form.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/connected-scatter
Adds its 5 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
ConnectedScatter
7 props
PropTypeDefault
label *string—
points *readonly ScatterPoint[]—
xLabel *string—
yLabel *string—
fx((n: number) => string)(n) => String(n)
fy((n: number) => string)(n) => String(n)
classNamestring—
Keyboard
- →
- Moves to the next item or value.
- ↓
- Moves to the next item or value.
- ←
- Moves to the previous item or value.
- ↑
- Moves to the previous item or value.
Accessibility
It exposes group and status semantics, with aria-label kept in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/connected-scatter.mdThe index of every part is at /llms.txt.