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: Actual sales against a dashed goal line with a fixed date marker and an Export, Period, Filter and Share menu, no range control
When to use
- A primary series as a filled area with a goal, baseline or forecast traced as lines on the same axis
- Release health against a baseline, with limit lines and a marker where a rollback happened
When not to use
- Sales weighed against views on 2 independent scales: use the Sales vs Traffic block
- A range picker that recomputes the headline total as the period changes: use the Cashflow Trend block
- One volume series alone, with no goal or baseline to compare against: use the Area Chart blocks
- Two or more series drawn only as strokes across shared time buckets: use the Line Chart blocks
Agent notes
- Replace
salesData; each row copiessalesintosalesArea, which draws the fill and is dropped fromCustomTooltip - The Export, Period, Filter and Share
DropdownMenuItementries have no onClick, so no menu choice runs an action - The
ReferenceLineis pinned to Mar 24 in chart.tsx rather than read fromsalesData - Areas and lines share one
ComposedChart, so a new series goes in as anAreaor aLinechild with its owndataKey
https://reui.io/blocks/chart/composed-chart/chart-20.mdget_block("chart-20")npx shadcn@latest add @reui/chart-20Shadcn Components in the Sales vs Goal Block
Dependencies
- recharts
Shadcn Sales vs Goal Block
Sales vs goals composed line and area chart with vertical reference line marker. Part of the ReUI Shadcn Composed Chart blocks collection.
Sales overview card plotting actual vs goal lines over a gradient area fill, with a dashed vertical reference marker, dollar-to-millions axis, custom tooltip, and Export/Filter/Share dropdown. ReUI Card, Button, DropdownMenu. For revenue dashboards.
It is composed from Button, Card, Dropdown Menu, so every part of it is a primitive you can restyle with your own design tokens.
What You Can Build With the Sales vs Goal 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 Composed Chart blocks to assemble a full screen instead of a single section.
All Shadcn Composed Chart 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.
- DeFi Overview Dark finance metric card with composed area-and-line chart and day, week, month period tabs
- Cashflow Trend Cashflow area and line chart card with period range selector and total plus percentage trend
- Canary Analysis Live canary health panel with release against baseline error rate and latency charts
- Canary Rollback Canary latency chart with a p95 limit breach and rollback marker for a rolled-back release
Related Shadcn Charts Block Categories
- Area Chart (3) Area chart cards with gradient fills, stacked series, period tabs and hover tooltips for trends over time.
- Bar Chart (14) Bar and column charts, grouped and stacked bars, lollipop stems and segmented bar meters for comparing values.
- Line Chart (6) Line chart cards with single and multi-series lines, dual axes, reference lines and metric switchers.
- Pie Chart (2) Pie and donut chart cards with center totals, per-segment legends and period tabs for share of a whole.
- Radial Chart (3) Radial gauges with semicircle and full arcs, segmented rings and status labels for progress toward a target.
- Sparkline (11) KPI tiles and metric lists where each value pairs with a small line, area or bar sparkline and a delta.
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 (301) Browse 301 Shadcn Application blocks across 23 categories.
- Shadcn Data Grid Blocks (42) Browse 42 Shadcn Data Grid blocks across 9 categories.
- Shadcn Charts Blocks (47) Browse 47 Shadcn Charts blocks across 8 categories.
- Shadcn Solutions Blocks (74) Browse 74 Shadcn Solutions blocks across 10 categories.
- Shadcn AI & Agents Blocks (18) Browse 18 Shadcn AI & Agents blocks across 2 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 Sales vs Goal block?
Use it for actual sales against a dashed goal line with a fixed date marker and an Export, Period, Filter and Share menu, no range control.
The Composed Chart category fits:
- A primary series as a filled area with a goal, baseline or forecast traced as lines on the same axis
- Release health against a baseline, with limit lines and a marker where a rollback happened
For sales weighed against views on 2 independent scales, use the Sales vs Traffic block. For a range picker that recomputes the headline total as the period changes, use the Cashflow Trend block. For one volume series alone, with no goal or baseline to compare against, use the Area Chart blocks. For two or more series drawn only as strokes across shared time buckets, use the Line Chart blocks.
What is the Sales vs Goal block built with?
Can I restyle the Sales vs Goal block?
How should I use Shadcn composed chart 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.