For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Installs with a ReUI Pro or Ultimate license.
Best for: One distance figure over a raw SVG path with a dotted fill, where Week, Month and Year tabs swap path strings stored in data
When to use
- Rows of metric tiles, each pairing its value with a sparkline, a meter or a delta
- Health strips for cron jobs, SLOs or data syncs that open with KPI tiles and mini trends
- Metric lists where every row ends in a small trend and a change badge
When not to use
- Several stock metrics, each with its own trend, swapped together by one period switch: use the Inventory Health block
- Several business figures side by side, each with a hover tooltip on its trend: use the KPI Trend Cards block
- Plain KPI numbers that need only a delta badge, an actions menu or a progress bar: use the Stats blocks
- One metric that deserves a full width plot with axes and a tooltip: use the Area Chart blocks
- A whole overview page that sets a header, summary tiles and a work list around its plots: use the Dashboard blocks
Agent notes
- Replace
PERIODSin data.tsx; eachvalueis a preformatted string and eachlinePatha hand drawn path in a 552 by 118 viewBox areaPathonly closes a line down to the bottom edge, so generate eachlinePathfrom your series scaled to that viewBoxCharttakes no props and fetches nothing: every tile value and series comes from constants in the block's own folder
https://web.dev.reui.io/blocks/chart/sparkline/chart-11.mdget_block("chart-11")npx shadcn@latest add @reui/chart-11Shadcn Distance Tracker Block
Distance Metric Card with Week, Month, Year Tabs and Dotted Sparkline Fill. Part of the ReUI Shadcn Charts Sparkline blocks collection.
Cycling distance KPI card that swaps a dotted area sparkline and value across Week, Month, and Year tabs. Built with ReUI Frame and shadcn Tabs for fitness, activity, or analytics stat panels and metric widgets.
It is composed from Frame, Tabs, so every part of it is a primitive you can restyle with your own design tokens.
What You Can Build With the Distance Tracker Block
- Install it with the ReUI registry command in the toolbar above, then swap the placeholder content, data wiring, and business logic for your own.
- Compare it across all eight ReUI styles and both the Base UI and Radix bases in the customizer before committing to one direction.
- Combine it with the other Shadcn Charts Sparkline blocks to assemble a full screen instead of a single section.
All Shadcn Charts Sparkline Blocks
The rest of this category, each on its own page with a live preview, the components it is built from, and the install command.
- Inventory Health Inventory KPI summary card with period tabs and per-metric sparkline trends
- KPI Strip Four-column KPI stat row with corner line sparklines and trend badges
- Wallet Balances Portfolio Balance Cards with Bottom-Anchored Line Charts on a Dotted Bed
- Wealth Overview Finance KPI metric grid with delta badges, brand logo stacks and mini area sparklines
- KPI Trend Cards Three KPI stat cards with gradient sparkline area charts and hover tooltips
- Order Metrics Order Metrics List Card with Per-Row Line Sparklines and Trend Badges
- Cron Job Health Cron job health KPI strip with SLO sparkline, failure split and next run track
- SLO Fleet Health SLO health KPI strip with lollipop minis for budget left, hourly burn peaks and budget events
- SLO Budgets SLO error budget list with diverging lollipop pins, an attention filter and a New SLO dialog
- Connection Health Data connection KPI strip with health segment bars, a rows synced area trend and failure day bars
Related Shadcn Charts Block Categories
- Area Chart (4) Area chart cards with gradient fills, comparisons to a prior period or baseline, hover readouts and CSV export for trends over time.
- Bar Chart (12) Bar and column charts, stacked hourly outcomes, 3D prisms, diverging lanes and lollipop stems for comparing values.
- Composed Chart (5) Composed charts that mix bars, lines and areas on one axis: liquidity flows, sales against a goal, cashflow, margin and a canary rollback.
- Line Chart (6) Line chart cards with single and multi-series lines, dual axes, reference lines and metric switchers.
- Pie Chart (3) Donut cards for share of a whole, with source rows, version drill-down and period switches, plus a budget rose for spend against budget.
- Radial Chart (3) Radial cards for a value against a limit or target: concentric error budget rings, API health ring gauges and a day clock of inflows.
All Shadcn Block Groups
Browse the full ReUI Shadcn blocks library by product surface. Each group bundles category-level blocks you can mix and match across your project.
- Shadcn Application Blocks (303) Browse 303 Shadcn Application blocks across 23 categories.
- Shadcn Data Grid Blocks (47) Browse 47 Shadcn Data Grid blocks across 9 categories.
- Shadcn Charts Blocks (52) Browse 52 Shadcn Charts blocks across 10 categories.
- Shadcn Solutions Blocks (76) Browse 76 Shadcn Solutions blocks across 11 categories.
- Shadcn AI & Agents Blocks (22) Browse 22 Shadcn AI & Agents blocks across 3 categories.
- Shadcn eCommerce Blocks (87) Browse 87 Shadcn eCommerce blocks across 13 categories.
- Shadcn Marketing Blocks (67) Browse 67 Shadcn Marketing blocks across 8 categories.
Frequently Asked Questions
When should I use the Distance Tracker block?
Use it for one distance figure over a raw SVG path with a dotted fill, where Week, Month and Year tabs swap path strings stored in data.
The Sparkline category fits:
- Rows of metric tiles, each pairing its value with a sparkline, a meter or a delta
- Health strips for cron jobs, SLOs or data syncs that open with KPI tiles and mini trends
- Metric lists where every row ends in a small trend and a change badge
For several stock metrics, each with its own trend, swapped together by one period switch, use the Inventory Health block. For several business figures side by side, each with a hover tooltip on its trend, use the KPI Trend Cards block. For plain KPI numbers that need only a delta badge, an actions menu or a progress bar, use the Stats blocks. For one metric that deserves a full width plot with axes and a tooltip, use the Area Chart blocks. For a whole overview page that sets a header, summary tiles and a work list around its plots, use the Dashboard blocks.
What is the Distance Tracker block built with?
Can I restyle the Distance Tracker block?
How should I use Shadcn sparkline blocks in a real project?
Start building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
From $249, once. Lifetime updates.