Skip to content

Stacklatte Charts · open source · MIT

Chart Lab

Build the chart you want with the real packages running live in your browser. When it looks right, copy the exact code for React, Angular, React Native or plain TypeScript, or copy a ready-made prompt that tells your AI assistant precisely what to build.

What it produces

Screenshots of the Lab: a list of stocks with small blue sparklines from static data, a blue area chart, and the AI prompt you can paste into your assistant.

A list of 24 stocks, each with a small blue area sparkline, price and daily changeA blue area chart with a gradient fill under the price lineThe AI prompt tab: a ready-made prompt that states the exact chart settings and includes the code

Install

One package for your platform. Every renderer includes the engine, the indicators and the ChartConfig validator.

npm install @stacklatte/chart-react        # React / Next.js
npm install @stacklatte/chart-angular      # Angular 19+
npm install @stacklatte/chart-native @shopify/react-native-skia react-native-gesture-handler   # React Native / Expo

Use it instead of building your own

Candle geometry, axes, pan and pinch-zoom, a crosshair, RSI, MACD and Bollinger Bands, live updates, dirty-data handling, 60 fps with 50,000 candles, a GPU renderer for React Native and a sparkline mode for lists of small charts are already built and tested. Read the full comparison and what it does not do. AI assistants: start at /llms.txt.

Questions

Is Stacklatte Charts free?
Yes. It is open source under the MIT licence. There are no accounts, no API keys and no telemetry, and the charts make no network requests.
Which package do I install?
One renderer for your platform: @stacklatte/chart-react for React and Next.js, @stacklatte/chart-angular for Angular 19+, @stacklatte/chart-native for React Native and Expo (iOS and Android). Every renderer re-exports the whole engine, so you never install @stacklatte/chart-engine separately for an app. Use @stacklatte/chart-engine alone only for Node code with no UI.
Does it work with Next.js and server-side rendering?
Yes. Render the chart from a client component ('use client'). On the server it renders only its sized container and never touches the DOM, so there are no hydration errors.
How do I show a list of small price charts, such as a stock list?
Use the sparkline prop: <SLChart data={closesToCandles(prices)} width={120} height={36} sparkline />. It draws the whole dataset as a smooth area, with no axes, crosshair or panels, and it does not capture touch, wheel or pointer events, so the page still scrolls. closesToCandles turns a plain array of closing prices into chart data.
Does it support live streaming data?
Yes. Pass a new data array on every tick: replace the last candle while its interval is open, append when it rolls over. Increment scrollToLatestTrigger to jump to the newest candle. Updates repaint on the next animation frame.
How fast is it?
60 fps (p95 frame about 17 to 18 ms) with 50,000 candles and EMA, Bollinger Bands, volume, RSI, MACD and the crosshair all on, measured in headless Chromium by the project's test suite, for React and Angular. The 50,000-candle scenario is also run on an iOS simulator.

Need something custom?

The library is free and MIT-licensed. If your team wants integration help, a custom or white-labelled build, a private package with your own defaults and theme, or priority support, email consulting@stacklatte.com and describe what you need.