Gathering detailed insights and metrics for lightweight-charts
Gathering detailed insights and metrics for lightweight-charts
Gathering detailed insights and metrics for lightweight-charts
Gathering detailed insights and metrics for lightweight-charts
@jiaminghi/charts
Lightweight charting
lightweight-charts-react-wrapper

ngx-lightweight-charts
Angular wrapper for Trading View lightweight-charts
krasulya-lightweight-charts
FORK Financial lightweight charts built with HTML5 canvas
Performant financial charts built with HTML5 canvas
npm install lightweight-charts
Typescript
Module System
Node Version
NPM Version
TypeScript (47.85%)
JavaScript (30.8%)
HTML (11.36%)
MDX (8.15%)
CSS (1.33%)
Vue (0.38%)
Shell (0.13%)
Total Downloads
12,300,791
Last Day
5,605
Last Week
120,456
Last Month
601,521
Last Year
5,421,739
Apache-2.0 License
11,753 Stars
2,932 Commits
1,867 Forks
167 Watchers
26 Branches
57 Contributors
Updated on Jul 06, 2025
Minified
Minified + Gzipped
Latest Version
5.0.8
Package Id
lightweight-charts@5.0.8
Unpacked Size
2.66 MB
Size
536.33 kB
File Count
10
NPM Version
10.9.2
Node Version
22.14.0
Published on
Jun 26, 2025
Cumulative downloads
Total Downloads
Last Day
-8.8%
5,605
Compared to previous day
Last Week
-24%
120,456
Compared to previous week
Last Month
-1.2%
601,521
Compared to previous month
Last Year
65.1%
5,421,739
Compared to previous year
1
Demos | Documentation | Reddit
TradingView Lightweight Charts™ are one of the smallest and fastest financial HTML5 charts.
The Lightweight Charts™ library is the best choice for you if you want to display financial data as an interactive chart on your web page without affecting your web page loading speed and performance.
It is the best choice for you if you want to replace static image charts with interactive ones. The size of the library is close to static images but if you have dozens of image charts on a web page then using this library can make the size of your web page smaller.
Take a look at awesome-tradingview for related projects created by our community members.
The library provides a rich set of charting capabilities out of the box, but developers can also extend its functionality by building custom plugins. See the interactive plugin examples here, or check out plugin-examples/README.md for more details.
1npm install lightweight-charts
1import { createChart, LineSeries } from 'lightweight-charts'; 2 3const chart = createChart(document.body, { width: 400, height: 300 }); 4const lineSeries = chart.addSeries(LineSeries); 5lineSeries.setData([ 6 { time: '2019-04-11', value: 80.01 }, 7 { time: '2019-04-12', value: 96.63 }, 8 { time: '2019-04-13', value: 76.64 }, 9 { time: '2019-04-14', value: 81.89 }, 10 { time: '2019-04-15', value: 74.43 }, 11 { time: '2019-04-16', value: 80.01 }, 12 { time: '2019-04-17', value: 96.63 }, 13 { time: '2019-04-18', value: 76.64 }, 14 { time: '2019-04-19', value: 81.89 }, 15 { time: '2019-04-20', value: 74.43 }, 16]);
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:
1const chart = LightweightCharts.createChart(document.body, { width: 400, height: 300 }); 2const lineSeries = chart.addSeries(LightweightCharts.LineSeries); 3lineSeries.setData([ 4 { time: '2019-04-11', value: 80.01 }, 5 { time: '2019-04-12', value: 96.63 }, 6 { time: '2019-04-13', value: 76.64 }, 7 { time: '2019-04-14', value: 81.89 }, 8 { time: '2019-04-15', value: 74.43 }, 9 { time: '2019-04-16', value: 80.01 }, 10 { time: '2019-04-17', value: 96.63 }, 11 { time: '2019-04-18', value: 76.64 }, 12 { time: '2019-04-19', value: 81.89 }, 13 { time: '2019-04-20', value: 74.43 }, 14]);
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 |
See BUILDING.md for instructions on how to build lightweight-charts
from source.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this software except in compliance with the License. You may obtain a copy of the License at LICENSE file. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
This software incorporates several parts of tslib (https://github.com/Microsoft/tslib, (c) Microsoft Corporation) that are covered by BSD Zero Clause License.
This license requires specifying TradingView as the product creator.
You shall add the "attribution notice" from the NOTICE file and a link to https://www.tradingview.com/ to the page of your website or mobile application that is available to your users.
As thanks for creating this product, we'd be grateful if you add it in a prominent place.
You can use the attributionLogo
chart option for displaying an appropriate link to https://www.tradingview.com/ on the chart itself, which will satisfy the link requirement.
No vulnerabilities found.
Reason
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 6/10 approved changesets -- score normalized to 6
Reason
4 existing vulnerabilities detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More