# 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.

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/range-navigator
```

npm dependencies: clsx, motion, tailwind-merge

## Props

`<RangeNavigator />`

- `title?`: `string`
- `values?`: `number[]`
- `endDate?`: `Date`
- `initialWindow?`: `number`
- `minWindow?`: `number`
- `color?`: `string`
- `locale?`: `string`
- `currency?`: `string`
- `onWindowChange?`: `(range: { start: number; end: number }) => void className?: string`

## 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
- SMA Chart: https://ssych.com/library/sma-chart.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

## Links

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