Price Target Fan

Composable price target chart with Header, Plot, SVG, Axes, History, Targets, Now, Cursor, and Tooltip parts. Supply dated price history and targets; scrub with a pointer or keyboard and customize the active readout.

Preview

$205.00+14.8%Mean target
160180200220Sep 2025Mar 2026NowSep 2027 232205168

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @beui/price-target-fan

API Reference

PriceTargetFan

label?
string

Accessible name of the chart.

current
number

Last traded price; the history walks to this point.

targets
[PriceTarget, PriceTarget, PriceTarget]

High, mean and low targets, in that order.

dates?
{ start?: string; mid?: string; horizon?: string | undefined; } | undefined

Axis labels, oldest to horizon.

history?
{}

Actual prices, oldest first, using ISO dates. Empty history renders only the current price and targets.

active?
PriceTargetFanActive | null
defaultActive?
PriceTargetFanActive | null
onActiveChange?
((active: PriceTargetFanActive | null) => void)
className?
string

PriceTargetFanHeader

className?
string

PriceTargetFanAxes

className?
string

PriceTargetFanPlot

className?
string

PriceTargetFanSvg

className?
string

PriceTargetFanCursor

className?
string

PriceTargetFanHistory

className?
string

PriceTargetFanNow

className?
string

PriceTargetFanTargets

className?
string

PriceTargetFanTooltip

className?
string

Contributed by

Savva

Updated