Lightweight Charts
Small, fast open-source JavaScript library from TradingView for showing interactive financial charts, such as candlesticks and lines, on your own web page.
Put a smooth, interactive price chart on your own dashboard or bot status page with one npm package, and extend it with plugins.
Who it is for
Developers who want to display the prices or results of their trading bot or backtest in a web page without a heavy charting suite.
Strengths
- Described by TradingView as one of the smallest and fastest financial HTML5 charts.
- Installs with npm, or loads from a CDN with a standalone build that needs no bundler.
- Extensible through custom plugins, with a plugin catalog and examples.
- Official guidance for AI coding assistants is provided for the v5 API.
Good to know
- The license requires identifying TradingView as the creator: include the NOTICE attribution and link to tradingview.com on any site or app you publish.
- It is a charting library, not a data source or trading platform: you must supply your own price data and write the code.
- Standalone builds bundle their dependencies; the other builds do not.
- The latest master build is installed from pkg.pr.new and has not been through a release, so use a tagged version for real projects.
Custom bots are coming soon
We are preparing a service to build bots on tools like this one. Follow our Telegram channel to know when it opens.
Compare it with others
Quick answers
How much does Lightweight Charts cost?
Free and open source (Apache-2.0). Check the official website for details. Prices change, so check the official website before you decide.
Is Lightweight Charts open source?
Yes. License: Apache-2.0.
Who is Lightweight Charts for?
Developers who want to display the prices or results of their trading bot or backtest in a web page without a heavy charting suite.
What is Lightweight Charts written in?
Lightweight Charts is written in JavaScript, TypeScript.
What should I know before using Lightweight Charts?
The license requires identifying TradingView as the creator: include the NOTICE attribution and link to tradingview.com on any site or app you publish. It is a charting library, not a data source or trading platform: you must supply your own price data and write the code. Standalone builds bundle their dependencies; the other builds do not. The latest master build is installed from pkg.pr.new and has not been through a release, so use a tagged version for real projects.
Want a bot like this when custom bots open? Get notified · All comparisons · Guides
Sources
Every fact on this page comes from these sources, checked on 2026-12-03. If something has changed, the source wins.
- https://raw.githubusercontent.com/tradingview/lightweight-charts/master/README.md: description as small and fast HTML5 financial charts, Apache-2.0 license, attribution requirement and attributionLogo option, npm and CDN install, build variants, plugins, AI skills for v5
Alternatives in Market data
exchange_calendars
Python library with trading calendars for more than 50 exchanges, so your code knows which days are sessions, when markets open, close and take breaks.
OpenBB
Open-source data platform that connects many data sources and exposes them to Python, a command line, a local REST API and AI agents.
SEC EDGAR APIs
Free JSON APIs from the U.S. Securities and Exchange Commission with company filing histories and XBRL financial facts from 10-K, 10-Q, 8-K and other filings, plus nightly bulk downloads.
TA-Lib (Python wrapper)
Python wrapper for the TA-Lib technical analysis library, with 200+ indicators and 61 candlestick pattern functions that work on NumPy, pandas and Polars data.