๐Ÿ’ธ Sponsor the strip
REPLAUSE

Lightweight Charts

JavaScript charting library for candles, lines and your own overlays

๐Ÿงฉ Build it Free 01 in Indicators & TradingView ๐Ÿ†• NEW TODAY
Any marketStandaloneJS/TS

by tradingview โ†’

17,218 3 sent ยท 7 days Apache-2.0updated 9 Sep '26

Overview

Lightweight Charts is a JavaScript charting library for rendering candlestick and line series on a web page, extensible with custom plugins.

  • Forweb developers who want an interactive financial chart on a page without a heavier charting stack.
  • NeedsNode/npm for the package install, or a CDN script tag; no account or key.
  • Runsa TypeScript library published to npm, with a standalone IIFE build for direct browser use via CDN.
  • Limitthe licence requires an attribution notice and a link to tradingview.com on any page that uses it โ€” the built-in attributionLogo chart option satisfies this by default.

Vibe it

Paste this into your AI agent. Write the first line, or take a suggestion; the copy carries your words.

Source: https://github.com/tradingview/lightweight-charts โ€” clone it and read its README and examples before writing anything; its documented setup beats what you remember.
Stack: a TypeScript charting library โ€” create a chart, add a series, and call setData(); a standalone IIFE build is also available via CDN with no bundler.
Needs: Node/npm for the package install, or nothing beyond a script tag for the CDN build.
Start: `npm install lightweight-charts`, then createChart() + chart.addSeries(CandlestickSeries) + setData() with a handful of bars from the README example.
Limit: the licence requires an attribution notice and a link to tradingview.com on any page that uses it โ€” the built-in attributionLogo chart option satisfies this by default.
Done means: you show me a rendered chart in my browser with my own data, and the code you wrote.
Before you start, ask me: where my OHLC data is coming from, and, if there is no project in this folder yet, whether I want a plain page or a framework.

Something wrong here? Tell us โ†’