# TradingView Lightweight Charts

> Small, fast canvas charts for financial data: candlesticks, OHLC bars, price lines and volume, from TradingView.

Source: https://tastebase.ehsanulsiam.workers.dev/browse/lightweight-charts

free

Small, fast canvas charts for financial data: candlesticks, OHLC bars, price lines and volume, from TradingView.

by TradingView[GitHub](https://github.com/tradingview/lightweight-charts)[npm](https://npmjs.com/package/lightweight-charts)

[visit](https://www.tradingview.com/lightweight-charts/?utm_source=tastebase&utm_medium=referral&utm_content=detail-page)

[https://www.tradingview.com/lightweight-charts/](https://www.tradingview.com/lightweight-charts/?utm_source=tastebase&utm_medium=referral&utm_content=detail-preview)

## Try these

no preview

### [Apache ECharts](https://tastebase.ehsanulsiam.workers.dev/browse/echarts)

Full-featured canvas/SVG charting engine for big data, maps and complex dashboards.

no preview

### [Bklit UI](https://tastebase.ehsanulsiam.workers.dev/browse/bklit-ui)

Composable animated chart components on d3, Motion and Tailwind, from the shadcn registry, with a React Native port.

no preview

### [NumberFlow](https://tastebase.ehsanulsiam.workers.dev/browse/number-flow)

Animated number component: digits roll to the new value, formatted with Intl.NumberFormat.

no preview

### [Rough.js](https://tastebase.ehsanulsiam.workers.dev/browse/roughjs)

Draws lines, shapes and SVG paths in a sketchy, hand-drawn style on canvas or SVG; the renderer behind Excalidraw.

## Looks that pick it

[Data-dense / terminal](https://tastebase.ehsanulsiam.workers.dev/looks/data-dense)[Fintech](https://tastebase.ehsanulsiam.workers.dev/looks/fintech)

## For your agent

##### Install

`npm i lightweight-charts`

##### Use it for

- candlestick price chart for a trading, crypto or brokerage app
- a stock or token price chart with volume bars, crosshair and a zoomable, pannable time axis
- a live price chart that streams ticks and updates the last candle in place
- buy and sell markers or entry, stop and target price lines drawn over a price series

##### Skip it when

- general dashboard charts (revenue by month, pie, funnel): use recharts
- one candlestick card inside a shadcn dashboard that should match its other charts: use bklit-ui
- you cannot credit TradingView on the page: the license requires it, use echarts (candlestick series)

##### What's inside15 free

- Candlestick
- Bar (OHLC)
- Line
- Area
- Baseline
- Histogram
- Custom series
- Series markers
- Up/down markers
- Price lines
- Panes
- Text watermark
- Image watermark
- Yield curve chart
- Options chart

##### Facts

**Frameworks**
vanilla, react, vue, svelte, solid, angular

**Styling**
unstyled

**Weight**
small

**Accessibility**
weak

**Maturity**
established

**License**
Apache-2.0

**Price**
Free

##### Pairs with

[NumberFlow](https://tastebase.ehsanulsiam.workers.dev/browse/number-flow)

##### Alternatives

[Apache ECharts](https://tastebase.ehsanulsiam.workers.dev/browse/echarts)[Bklit UI](https://tastebase.ehsanulsiam.workers.dev/browse/bklit-ui)

[Compare TradingView Lightweight Charts with its alternatives](https://tastebase.ehsanulsiam.workers.dev/alternatives/lightweight-charts-alternatives)

```
import { createChart, CandlestickSeries, ColorType } from 'lightweight-charts'

const chart = createChart(document.getElementById('chart')!, {
  autoSize: true,
  layout: { background: { type: ColorType.Solid, color: 'transparent' }, textColor: '#a1a1aa' },
})
const candles = chart.addSeries(CandlestickSeries, { upColor: '#22c55e', downColor: '#ef4444', borderVisible: false })
candles.setData(bars) // [{ time: '2026-11-03', open, high, low, close }], ascending
// live: candles.update(lastBar); teardown: chart.remove()
```

https://tradingview.github.io/lightweight-charts/examples

Loading website

[Visit](https://www.tradingview.com/lightweight-charts/?utm_source=tastebase&utm_medium=referral&utm_content=floating-pill)
