Connected scatter
ProPoints joined in time order on two axes.
pnpm dlx shadcn@latest add @caliper/connected-scatter| 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 #
Use it for
- Showing how two measures move together.
Skip it when
- Readers are unfamiliar with the form.
Installation #
pnpm dlx shadcn@latest add @caliper/connected-scatter
Adds its 3 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.
Usage #
Import it from your copy of the source. The example behind the preview comes with the source.
import { ConnectedScatter } from "@/components/ui/connected-scatter"
The worked example comes with Pro
The 14-line example behind the preview opens here with a Pro or Team licence.
API reference #
ConnectedScatter
component
Accessibility #
It exposes group and status semantics, with aria-label kept in step with state. Changes that matter are announced through a live region.
Motion #
It declares no animation in its component source. Any transition comes from its stylesheet, which uses the duration tokens that collapse to instant under prefers-reduced-motion.