StockChart
Real-time market data visualization component.
Preview
A real-time signal monitor that streams a live deviation trace against a configurable baseline.
signal monitoridle
syncing…
Installation
bash
npx shadcn@latest add https://ui.moyu.dev/r/stock-chart.jsonUsage
tsx
import { StockChart } from "@/components/moyu/stock-chart"
export default function Example() {
return <StockChart />
}API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| node | string | — | Signal source id to stream |
| refreshInterval | number | 20000 | Polling interval in ms |
| baseline | "prev-close" | "manual" | "prev-close" | Anchor for the 0% deviation line |
| variant | "area" | "line" | "area" | Render style of the signal trace |