← All comparisons

Chart.ts vs TradingView Lightweight Charts

TradingView Lightweight Charts is a financial charting library focused on candlestick and time-series charts. Great for trading UIs but limited to financial chart types and Canvas rendering.

FeatureChart.tsLightweight Charts
Bundle size<15kb min+gzip (entire library)~45kb min+gzip
Tree-shakingFull (import only what you use)Not applicable (single-purpose library)
TypeScriptBuilt-in, strict mode, full inferenceBuilt-in types
SSRNative SSR, works with any frameworkNot supported (Canvas-based, needs DOM)
AccessibilityWCAG AA, keyboard nav, screen readers, pattern fillsNone (Canvas rendering)
Tailwind CSSNative className on every element, dark: variantsNot supported (Canvas rendering)
Chart types65+ built-in (52 core + 13 WebGL/3D)~5 (candlestick, line, area, bar, histogram)
FrameworksReact, Vue, Svelte, Solid, Angular, Vanilla JSVanilla JS (wrappers available)
LicenseMITApache 2.0
RenderingTriple engine: SVG + Canvas + WebGL (auto-switching at 10k/100k points)Canvas (HTML5)
Real-TimeBuilt-in streaming, WebSocket, SSE, HTTP polling via @chartts/websocketBuilt-in streaming API
GPU / 3DWebGL renderer + @chartts/gl with 13 3D chart types (Scatter3D, Surface3D, Globe3D, etc.)No WebGL
Financial@chartts/finance: SMA, EMA, RSI, MACD, Bollinger Bands, ATR, VWAP, Sharpe ratioFull (indicators, overlays)
PluginsdefineChartType() with render context, hit testing, custom scalesCustom indicators
InteractionsZoom, pan, brush selection, crosshair, linked chartsZoom, pan, crosshair
Advanced ChartsSankey, treemap, sunburst, chord, geo maps, network graphs, 3D globeFinancial only (4-5 types)
Theme Presets34 presets (Nord, Dracula, Catppuccin, Tokyo Night, Material, etc.)Light/dark

Why switch from Lightweight Charts?

Chart.ts advantages

  • 65+ chart types (general-purpose + financial)
  • SVG rendering with CSS/Tailwind styling
  • WCAG AA accessible by default
  • Full SSR support
  • WebGL/3D charts (scatter, surface, globe)

Lightweight Charts limitations

  • Financial charts only, no general-purpose charts
  • Canvas rendering, no CSS styling
  • No accessibility support
  • Cannot SSR (requires DOM)
  • No pie, radar, treemap, sankey, etc.

Ready to switch?

Get started with Chart.ts in 30 seconds.

$npm install @chartts/core