Why FerroChart
- Fast at any size. Bar data lives on the GPU and coordinate transforms run in
shaders, so panning and zooming cost the same with 1,000 bars or 10 million. A
level-of-detail pyramid keeps zoomed-out views smooth and free of moiré.
- One engine everywhere. The same Rust core runs in the browser (WebAssembly),
in native apps (Metal, Vulkan, DirectX 12), in Python and Jupyter, behind a C ABI
for C#, C++, Qt and Flutter, and on servers without a GPU.
- Identical pixels. The GPU and CPU backends share every transform, step for
step, and are checked against the same golden images.
- Built like a library you can trust. No panics in the public API, no heap
allocations while panning, zooming or streaming (tested), no
unsafe in the core.
- Just the chart. No data feeds, network calls, accounts or telemetry. You bring
the data; FerroChart renders it and handles interaction.
Features
| |
|---|
| Series | Candlestick, OHLC, Heikin-Ashi, line, area, baseline, histogram, volume; Renko, range bars, Kagi, point & figure |
| Order flow | Footprint, order-book heatmap (a GPU compute shader), TPO / market profile |
| Indicators | 30 built in, from SMA to Ichimoku, updated incrementally on every tick and tested against reference data |
| Drawing tools | 29 tools: trend lines, channels, Fibonacci, pitchforks, Gann fans, patterns, Elliott waves, ranges, positions, text; undo/redo |
| Layout | Multiple panes, linear / log / percentage / indexed scales, markers with images, badges and clustering, price lines, light and dark themes |
| Sync | Linked crosshair, visible range and drawings across charts |
| State | View, panes and drawings save to and load from JSON |
| Plots | FerroPlot for non-time charts: scatter, bars, heatmaps, payoff diagrams, volatility smiles |
| Extensible | Plugins for custom series, layers, indicators, transforms and drawing tools |
| Easy to adopt | TypeScript types, React and Vue guides, a lightweight-charts compatibility layer |
Quick start
JavaScript / TypeScript
npm install @ferrochart/core
import { FerroChart } from '@ferrochart/core';
const chart = await FerroChart.create(document.querySelector('canvas')!, { theme: 'dark' });
const candles = chart.addCandlestickSeries();
candles.setData(bars); // { time, open, high, low, close, volume } columns or rows
chart.addVolumeSeries(candles);
chart.addIndicator(candles, 'ema', { n: 20 });
chart.addIndicator(candles, 'macd'); // in its own pane
chart.on('crosshairMove', (e) => console.log(e.point?.bar));
candles.update(lastBar); // live tick: same time updates, a later time appends
Rust
use ferrochart_core::{Chart, ChartOptions};
use ferrochart_indicators::named::ChartExt;
let mut chart = Chart::new(ChartOptions::default());
let candles = chart.add_candlestick()?;
chart.add_volume(candles)?;
chart.set_data(candles, bars)?; // OhlcColumns
chart.add_indicator_by_name(candles, "ema", &[("n", 20.into())])?;
ferrochart_winit::show(chart)?; // a native window
Python
import ferrochart as fc
chart = fc.Chart(theme="dark")
candles = chart.add_series("candlestick")
candles.set_data(df) # pandas or polars DataFrame
chart.add_indicator(candles, "ema", n=20)