Price Target Fan
Preview
Install
Add it with your package manager, or copy the source manually.
Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide
Download the release archive to your project root, then install the local file.
Import the shared styles once in your application.
API Reference
PriceTargetFan
label?stringAccessible name of the chart.
—currentnumberLast traded price; the history walks to this point.
—targetsreadonly [PriceTarget, PriceTarget, PriceTarget]High, mean and low targets, in that order.
—dates?{ start?: string; mid?: string; horizon?: string }Axis labels, oldest to horizon.
—history?readonly PriceHistoryPoint[]Actual prices, oldest first, using ISO dates. Empty history renders only the current price and targets.
—v-model:active?PriceTargetFanActive | null—defaultActive?PriceTargetFanActive | null—labels?Partial<PriceTargetFanMessages>Override any built-in string.
—class?string—@active-change?(value: PriceTargetFanProps['active']) => void—#default?slotCompose `PriceTargetFanHeader` and `PriceTargetFanPlot`; omit it for the complete chart.
—PriceTargetFanHeader
class?string—#default?slotReplace the default price, move and target name.
—PriceTargetFanAxes
class?string—PriceTargetFanPlot
class?string—#default?slotCompose `PriceTargetFanSvg` and `PriceTargetFanTooltip`; omit it for the default pair.
—PriceTargetFanSvg
class?string—#default?slotCompose the chart layers (`PriceTargetFanAxes`, `...History`, `...Targets`, `...Now`, `...Cursor`); omit it for all of them.
—PriceTargetFanCursor
class?string—PriceTargetFanHistory
class?string—PriceTargetFanNow
class?string—PriceTargetFanTargets
class?string—PriceTargetFanTooltip
class?string—#default?{ overlay: PriceTargetFanOverlay }Custom card content for the hovered target or the scrubbed point.
—Updated