Traiding Wiev

Saved searches

Use saved searches to filter your results more quickly

Cancel Create saved search
Resetting focus

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Performant financial charts built with HTML5 canvas

License

Notifications You must be signed in to change notification settings

tradingview/lightweight-charts

Go to file

Open more actions menu

Folders and files

Last commit message
Last commit date

Latest commit

History

View all files

Repository files navigation

Lightweight Charts™

Installing

es6 via npm

npm install lightweight-charts
import  createChart, LineSeries > from 'lightweight-charts'; const chart = createChart(document.body,  width: 400, height: 300 >); const lineSeries = chart.addSeries(LineSeries); lineSeries.setData([  time: '2019-04-11', value: 80.01 >,  time: '2019-04-12', value: 96.63 >,  time: '2019-04-13', value: 76.64 >,  time: '2019-04-14', value: 81.89 >,  time: '2019-04-15', value: 74.43 >,  time: '2019-04-16', value: 80.01 >,  time: '2019-04-17', value: 96.63 >,  time: '2019-04-18', value: 76.64 >,  time: '2019-04-19', value: 81.89 >,  time: '2019-04-20', value: 74.43 >, ]);

CDN

You can use unpkg: https://unpkg.com/lightweight-charts/dist/lightweight-charts.standalone.production.js The standalone version creates window.LightweightCharts object with all exports from esm version:

const chart = LightweightCharts.createChart(document.body,  width: 400, height: 300 >); const lineSeries = chart.addSeries(LightweightCharts.LineSeries); lineSeries.setData([  time: '2019-04-11', value: 80.01 >,  time: '2019-04-12', value: 96.63 >,  time: '2019-04-13', value: 76.64 >,  time: '2019-04-14', value: 81.89 >,  time: '2019-04-15', value: 74.43 >,  time: '2019-04-16', value: 80.01 >,  time: '2019-04-17', value: 96.63 >,  time: '2019-04-18', value: 76.64 >,  time: '2019-04-19', value: 81.89 >,  time: '2019-04-20', value: 74.43 >, ]);

Build Variants

Dependencies included Mode ES module IIFE ( window.LightweightCharts )
No PROD lightweight-charts.production.mjs N/A
No DEV lightweight-charts.development.mjs N/A
Yes (standalone) PROD lightweight-charts.standalone.production.mjs lightweight-charts.standalone.production.js
Yes (standalone) DEV lightweight-charts.standalone.development.mjs lightweight-charts.standalone.development.js

Traiding Wiev

The best trades require research, then commitment.

Get started for free $0 forever, no credit card needed

Scott “Kidd” Poteet The unlikely astronaut

Watch explainer

Where the world does markets

Join 100 million traders and investors taking the future into their own hands.

Market summary 

Indices Indices Stocks Stocks Crypto Crypto Futures Futures Forex Forex Bonds Bonds ETFs ETFs More More

Nasdaq 100

Community ideas 

Editors’ picks Editors’ picks Popular Popular More More

Indicators and strategies 

Editors’ picks Editors’ picks Popular Popular More More

Pine Script® indicator

Pine Script® indicator

Pine Script® indicator

Pine Script® indicator

Pine Script® library

Pine Script® indicator

Pine Script® strategy

Pine Script® indicator

Pine Script® indicator

Pine Script® indicator

Top stories 

US stocks 

Community trends

Trade ideas 

Highest volume stocks 

NVIDIA Corporation

Meta Platforms, Inc.

Microsoft Corporation

UnitedHealth Group Incorporated

Palantir Technologies Inc.

Most volatile stocks 

MasterBeef Group

Propanc Biopharma, Inc.

Aspire Biopharma Holdings, Inc.

Soligenix, Inc.

Matinas Biopharma Holdings, Inc.

Wellgistics Health, Inc.

Stock gainers 

Regular hours Regular hours Pre-market Pre-market After-hours After-hours More More

Stock losers 

Regular hours Regular hours Pre-market Pre-market After-hours After-hours More More

Earnings Calendar 

JHX James Hardie Industries plc.

EVGN Evogene Ltd.

HD Home Depot, Inc. (The)

PINC Premier, Inc.

MDT Medtronic plc.

VIK Viking Holdings Ltd

BON Bon Natural Life Limited

OCS Oculis Holding AG

US stocks news 

Crypto 

Community trends

Trade ideas 

Crypto gainers 

Libra Incentix

Gridium AI

Kenyan Digital Token

Don’t Burn Capital

Ibiza Final Boss

Crypto losers 

Blue Snakes

SNAKESBUSD

Crypto news 

Futures and commodities 

Trade ideas 

Energy futures 

Crude Oil Futures

Henry Hub Natural Gas Futures

Brent Crude Futures

RBOB Gasoline Futures

NY Harbor ULSD Futures

NY Ethanol (Platts) Futures

Metals futures 

Gold Futures

Silver Futures

Platinum Futures

Copper Futures

Palladium Futures

Aluminum Futures

Futures news 

Forex and currencies 

Trade ideas 

Forex heatmap 

EUR USD GBP JPY CHF AUD CNY CAD
EUR
USD
GBP
JPY
CHF
AUD
CNY
CAD

1D 1D 1W 1W 1M 1M 3M 3M 6M 6M 1Y 1Y YTD YTD 5Y 5Y All All

Forex news 

Economy 

Global inflation map 

Economic Calendar 

Trading and brokers 

Trade directly on the supercharts through our supported, fully-verified and user-reviewed brokers.

Forex, CFDs

4.6 Excellent

Open account Learn more

Forex, CFDs

4.7 Excellent

Open account Learn more

Forex, CFDs

4.7 Excellent

Open account Learn more

Forex, CFDs

4.7 Excellent

Open account Learn more

English English Select market data provided by ICE Data services. Select reference data provided by FactSet. Copyright © 2025 FactSet Research Systems Inc. © 2025 TradingView, Inc.

  • Yield Curves
  • Options
  • News Flow
  • Pine Script®
  • Social network
  • Wall of Love
  • Refer a friend
  • House Rules
  • Moderators
  • Indicators & strategies
  • Wizards
  • Freelancers
  • Features
  • Pricing
  • Market data
  • CME Group futures
  • Eurex futures
  • US stocks bundle
  • TradingView store
  • Tarot cards for traders
  • The C63 TradeTime
  • Widgets
  • Charting libraries
  • Lightweight Charts™
  • Advanced Charts
  • Trading Platform
  • Advertising
  • Brokerage integration
  • Partner program
  • Education program
  • Social network
  • Wall of Love
  • Refer a friend
  • House Rules
  • Moderators
  • Indicators & strategies
  • Wizards
  • Freelancers

Leave a comment