imp_trading_chart
A high-performance trading chart engine for Flutter
Inspired by TradingView Lightweight Charts
๐ Overview
imp_trading_chart is a rendering-first trading chart engine for Flutter.
It is not a widget-heavy chart, but a CustomPainter + viewport-driven engine designed for performance, precision, and scalability.
Built specifically for:
- ๐ Financial & stock market apps
- ๐น Crypto & trading platforms
- โก Real-time price feeds
- ๐ง Large datasets (10k+ candles)
โจ Visual Themes & Styles
๐ฌ Live Interaction Demos
๐ Real App Integration
โถ๏ธ Full Market Simulation
โ Drag / Pan Viewport
๐ Pinch-to-Zoom
๐ Chart Variants
| Variant | Use Case |
|---|---|
| Trading | Full-featured professional chart |
| Simple | Clean chart with labels |
| Compact | Dashboards & lists |
| Minimal | Sparklines & previews |
๐ง Engine-First Architecture
Candle Data (List<Candle>)
โ
ChartEngine (viewport, scaling, mapping)
โ
CustomPainter (pixels only)
Why this matters
- โ No widget-per-candle
- โ No DateTime math in render loop
- โ No unnecessary rebuilds
โ Only visible candles are processed โ Pan & zoom are O(1) operations โ Perfect for live trading data
๐ฆ Installation
dependencies:
imp_trading_chart: ^0.1.0
๐ Basic Usage
ImpChart.trading(
candles: candles
);
๐ฏ Candle Model
Candle(
time: 1700000000,
open: 100,
high: 120,
low: 90,
close: 110,
);
โ ๏ธ The engine does not aggregate data.
๐งช Example App
A complete interactive demo is included in the example/ folder.
cd example
flutter run
๐ Documentation
- ๐ Architecture & Internals โ DOCUMENTATION.md
- โก Quick API Guide โ QUICK_REFERENCE.md
๐ Public API Stability
Only these are public & stable:
ImpChartCandleChartStyleChartLayoutLabelStyles
๐ง Roadmap
- Public
ChartController - Programmatic zoom / pan API
- Indicator overlays (MA, EMA, VWAP)
๐ License
MIT License ยฉ Rahul Prajapati
Libraries
- imp_trading_chart
- imp_trading_chart