design-infraGitHub
← Sources

TradingView Lightweight Charts

npmfree

Canvas time-series and financial charts with line, area, baseline and OHLC styling.

$pnpm add lightweight-charts

TradingView Lightweight Charts

Canvas time-series and financial charts with line, area, baseline and OHLC styling.

Use it for

Use the free Lightweight Charts package, not TradingView Advanced Charts or a market-data service. Client-side only. Preserve the Apache license/NOTICE and required visible TradingView attribution/link described in the official guide. API v5 uses addSeries with series definitions; older addLineSeries tutorials differ. Provide your own licensed data and clean up charts/subscriptions.

Moods: technical, refined. Compare its chart form and treatment with the project’s existing components before adding another library.

Install selected packages

pnpm add lightweight-charts

Choose versions compatible with the current project; do not change its framework, theme or UI system automatically. The command installs the packages, not a finished component or screen. Read the linked API/example and adapt it to actual data and design tokens.

Starting options

Machine access and provenance

Gotchas

Use the free Lightweight Charts package, not TradingView Advanced Charts or a market-data service. Client-side only. Preserve the Apache license/NOTICE and required visible TradingView attribution/link described in the official guide. API v5 uses addSeries with series definitions; older addLineSeries tutorials differ. Provide your own licensed data and clean up charts/subscriptions.

Required package metadata, audited 2026-10-19:

PackageVersionPublished peers
lightweight-charts5.2.1None declared; runtime compatibility still needs checking.

These are published peer ranges, not proof that a given combination builds in a consumer. Preserve units, missing-data behavior, readable labels and a keyboard/nonvisual alternative. Cancel simulations, animation loops, observers and subscriptions on unmount. Renderer tags describe library capabilities; individual examples can use a subset or require additional adapters.

Verification and previews

Package names, free license metadata and public reference URLs were checked on 2026-10-19. This is not fresh-project runtime, browser, accessibility or performance verification of the upstream libraries. Local preview adapters are not added by this ingestion. External examples remain on their source sites; docs are not automatically embedded and no package is installed into the catalog app or consumer setup.