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: Closed sales against a monthly goal and last year, with attainment, both deltas and the running year to date in the tooltip
When to use
- Bars and a line on one time axis, such as revenue and opex columns under an operating margin line
- A measure against its goal or limit, such as closed sales against a dashed goal or latency past a limit
- Cash or liquidity flowing in and out by period, over the balance those flows add up to
When not to use
- Sales weighed against views on 2 independent scales: use the Sales vs Traffic block
- A metric this year against last year by month, with a fitted trend through the points: use the Inbound Leads 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
monthlySalesandyears; a month whosesalesis null has not closed, so it plots its goal only and the marker stands at the last quarter close RANGE_MONTHSsets the three ranges as month index spans; add an entry torangeOptionsandRANGE_MONTHSfor another range- Refresh waits
REFRESH_MS, replays the reveal and sets Synced to just now from the fixedsyncedAt; fetch your sales there - Every block plots in a recharts
ComposedChartin the shadcnChartContainer; a new series is one moreBar,AreaorLinechild with adataKey
Third-party API docs
- Recharts v3: API reference, docs
- Sonner v2: API reference, docs
https://web.dev.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
- cn
- recharts
- sonner
Shadcn Sales vs Goal Block
Sales vs goal line chart with an attainment and YTD tooltip, quarter close marker and accent picker. Part of the ReUI Shadcn Composed Chart blocks collection.
Closed sales by month against a dashed goal and last year. Tooltip with attainment, deltas and running YTD; range and display menus, color picker, refresh, expand, CSV and copy export. shadcn Card, ReUI ColorPicker, Badge. Quota dashboard.
It is composed from Badge, Button, Button Group, Card, Chart, Color Picker, Dialog, Dropdown Menu, and more, 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.
- Liquidity Flows Lending pool liquidity chart with asset-stacked supply, withdrawals below zero and a TVL lane
- Cashflow Trend Cashflow composed chart with a balance panel, in and out columns, net flow dots and a waterfall
- Operating Margin Operating margin chart with revenue and opex bars, a margin lane, a target and hatched forecast
- Canary Rollback Canary latency chart with stacked baseline and regression columns, breach stats and a rollback track
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.
- 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.
- Sankey Chart (3) Sankey flow charts for income statements, trial journeys and sales funnels, with hover tracing, drop-off nodes and leak markers.
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 Sales vs Goal block?
Use it for closed sales against a monthly goal and last year, with attainment, both deltas and the running year to date in the tooltip.
The Composed Chart category fits:
- Bars and a line on one time axis, such as revenue and opex columns under an operating margin line
- A measure against its goal or limit, such as closed sales against a dashed goal or latency past a limit
- Cash or liquidity flowing in and out by period, over the balance those flows add up to
For sales weighed against views on 2 independent scales, use the Sales vs Traffic block. For a metric this year against last year by month, with a fitted trend through the points, use the Inbound Leads 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.