Lightweight Charts
JavaScript charting library for candles, lines and your own overlays
๐งฉ Build it Free 01 in Indicators & TradingView ๐ NEW TODAY
17,218 3 sent ยท 7 days 0 copies ยท 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.
More in Indicators & TradingView
All 5 โ 02
TA-Lib (Python) ๐งฉ Build it Python bindings for TA-Lib's 150-plus technical indicators 03
lightweight-charts-python ๐งฉ Build it Python wrapper that draws TradingView-style charts in a desktop window 04
Pine Script Code Collection ๐งฉ Build it Pine Script indicators kept as source, outside the TradingView library
12,239
1
2,123
438