# SMA Chart

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

A React component for shadcn/ui and Tailwind CSS, from ssych ui (https://ssych.com). Free, MIT licensed, the source lands in your repo.

## Install

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

npm dependencies: clsx, motion, tailwind-merge

## Props

`<SmaChart />`

- `symbol?`: `string`
- `name?`: `string`
- `prices?`: `number[]`

## Where it belongs

- Charts: SVG chart components for React and Tailwind: candlesticks, drawdowns, donuts, radars, heat calendars and KPI charts, with no charting dependency. (https://ssych.com/library/s/charts)
- Candlestick chart: Candlestick and price chart components for React and Tailwind: candles with volume, moving averages, volume profile and range selection, all in SVG. (https://ssych.com/library/s/candlestick-chart)

## Related

- Candlestick Chart: https://ssych.com/library/candlestick.md
- Equity & Drawdown: https://ssych.com/library/equity-drawdown.md
- Dotted Area Chart: https://ssych.com/library/dotted-area-chart.md
- Balance Chart: https://ssych.com/library/balance-chart.md
- Donut Chart: https://ssych.com/library/donut-chart.md
- Sectors Donut: https://ssych.com/library/sectors-donut.md
- Ratings Radar: https://ssych.com/library/ratings-radar.md
- Analyst Radar: https://ssych.com/library/analyst-radar.md

## Links

- Live preview and code: https://ssych.com/library/sma-chart
- Source: https://github.com/savvasicevs/ssych-ui
- All components: https://ssych.com/llms-full.txt
