# Financial chart components for React

> 13 Financial chart components for React and Tailwind: candlesticks, market depth, volume profile, moving averages, drawdown, benchmark and EPS charts, all in SVG.

The charts finance screens are built from, in one place. Price charts for trading, depth and volume profile for exchanges, an equity curve with its drawdown for backtests, performance against a benchmark for portfolios, and analyst targets and EPS for stock research. Each one is drawn in plain SVG with no chart library, and installs with the shadcn CLI as source you own.

## Components

### Candlestick Chart

A candlestick chart with a volume histogram, a magnet crosshair and a live OHLC legend, for stock and crypto trading terminals.

```bash
npx shadcn@latest add @ssych/candlestick
```

Live preview: https://ssych.com/library/candlestick · Plain text: https://ssych.com/library/candlestick.md

### Depth Chart

A market depth chart for crypto exchanges showing bid and ask liquidity around the mid price, with a readout of size on each side.

```bash
npx shadcn@latest add @ssych/depth-chart
```

Live preview: https://ssych.com/library/depth-chart · Plain text: https://ssych.com/library/depth-chart.md

### Volume Profile

A volume profile chart of traded volume by price with the point of control and value area, for futures and crypto traders.

```bash
npx shadcn@latest add @ssych/volume-profile
```

Live preview: https://ssych.com/library/volume-profile · Plain text: https://ssych.com/library/volume-profile.md

### SMA Chart

A stock price chart with 20 and 50 day simple moving average overlays and crosshair scrubbing, for trading and technical analysis screens.

```bash
npx shadcn@latest add @ssych/sma-chart
```

Live preview: https://ssych.com/library/sma-chart · Plain text: https://ssych.com/library/sma-chart.md

### Range Navigator

A price history chart with a range selector minimap; drag the window to pan and pull an edge to zoom, for trading and analytics apps.

```bash
npx shadcn@latest add @ssych/range-navigator
```

Live preview: https://ssych.com/library/range-navigator · Plain text: https://ssych.com/library/range-navigator.md

### Price Scrubber

A stock price chart you scrub with a magnet crosshair and price and time badges on the axes, the headline price turning green or red against the open.

```bash
npx shadcn@latest add @ssych/price-scrubber
```

Live preview: https://ssych.com/library/price-scrubber · Plain text: https://ssych.com/library/price-scrubber.md

### Equity & Drawdown

An equity curve with a synced drawdown chart for backtests and trading performance, one crosshair reading return, drawdown and days below peak.

```bash
npx shadcn@latest add @ssych/equity-drawdown
```

Live preview: https://ssych.com/library/equity-drawdown · Plain text: https://ssych.com/library/equity-drawdown.md

### Performance Chart

A portfolio performance chart against a benchmark index, shaded green while ahead and red while behind, with the gap on any day.

```bash
npx shadcn@latest add @ssych/performance-chart
```

Live preview: https://ssych.com/library/performance-chart · Plain text: https://ssych.com/library/performance-chart.md

### Balance Chart

A wallet balance chart for crypto and banking apps: an area line coloured by trend, with high and low marks and timeframes from 1H to All.

```bash
npx shadcn@latest add @ssych/balance-chart
```

Live preview: https://ssych.com/library/balance-chart · Plain text: https://ssych.com/library/balance-chart.md

### Market Heatmap

A stock market heatmap with tiles sized by market cap and tinted by the daily move, for market overview and trading dashboards.

```bash
npx shadcn@latest add @ssych/market-heatmap
```

Live preview: https://ssych.com/library/market-heatmap · Plain text: https://ssych.com/library/market-heatmap.md

### Returns Calendar

A monthly returns heatmap for funds, strategies and backtests, with a compounded yearly column and spans you select to compound returns.

```bash
npx shadcn@latest add @ssych/returns-calendar
```

Live preview: https://ssych.com/library/returns-calendar · Plain text: https://ssych.com/library/returns-calendar.md

### Price Target Fan

An analyst price target chart for stock research: a year of price history, then projections fanning out to the high, mean and low targets.

```bash
npx shadcn@latest add @ssych/price-target-fan
```

Live preview: https://ssych.com/library/price-target-fan · Plain text: https://ssych.com/library/price-target-fan.md

### Historical EPS

A quarterly EPS chart for stock research and earnings screens, with forecast against reported bars and the surprise on hover.

```bash
npx shadcn@latest add @ssych/historical-eps
```

Live preview: https://ssych.com/library/historical-eps · Plain text: https://ssych.com/library/historical-eps.md


## Questions

### Do I need a chart library to use these?

No. Each chart is a React component that draws its own SVG, so there is no Recharts, D3 or canvas runtime to add. Besides clsx and tailwind-merge, which every shadcn project has, the only package they need is Motion for the animation.

### Which chart should I use for a long price history?

These charts are sized for the bars one screen shows at once. For years of candles you pan and zoom through, a canvas library such as TradingView Lightweight Charts fits better, and it can sit beside these on one screen.

### Can I feed them live data?

Yes. They take plain arrays as props, so you pass in whatever your API or websocket returns and they redraw.

## Links

- This page: https://ssych.com/library/s/financial-charts
- All components: https://ssych.com/llms-full.txt
