candlesticks
3.0.1, released 6 months ago by rmzy.dev
A high-performance, interactive Flutter candlestick chart for financial apps.
WASM-ready
What it does
Renders interactive OHLCV candlestick charts with support for mobile and desktop gestures, crosshair interaction, panning, zooming, volume bars, and logarithmic or linear price scales.
AI-written summary of version 3.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display financial candlestick charts in a Flutter app.
- You require interactive features like zooming, panning, and crosshair selection.
Skip it when
- You need general-purpose line, bar, or pie charts rather than financial candlesticks.
- Your dataset does not use OHLCV financial formatting.
Strengths
- High performance with interactive mobile and desktop gestures.
- Supports both linear and logarithmic price scales.
- Includes lazy loading and controller-based viewport control.
Weaknesses
- Specialized exclusively for candlestick charts, limiting flexibility for other chart types.
- Requires candles to be strictly ordered from newest to oldest.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
not documented
import 'package:candlesticks/candlesticks.dart';
import 'package:flutter/material.dart';
class ChartPage extends StatelessWidget {
const ChartPage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: Candlesticks(
candles: [
Candle(
date: DateTime(2024, 1, 1),
open: 100,
high: 110,
low: 95,
close: 105,
volume: 1200,
),
],
),
),
);
}
}Alternatives
Packages that do the same job and could replace candlesticks.
- fl_chart
If you need a wide variety of standard chart types like line, bar, and pie charts.
94Compare - syncfusion_flutter_charts
If you need an enterprise-grade charting library with financial chart support and many other chart types.
91Compare