https://github.com/qiuxiang/simple_candlestick_chart
A simple candlestick chart for flutter. Supports smooth scroll and zoom.
https://github.com/qiuxiang/simple_candlestick_chart
candlestick candlestick-chart flutter kline
Last synced: 10 months ago
JSON representation
A simple candlestick chart for flutter. Supports smooth scroll and zoom.
- Host: GitHub
- URL: https://github.com/qiuxiang/simple_candlestick_chart
- Owner: qiuxiang
- License: mit
- Created: 2021-12-16T07:00:03.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-29T03:00:01.000Z (about 4 years ago)
- Last Synced: 2025-02-01T15:04:33.806Z (over 1 year ago)
- Topics: candlestick, candlestick-chart, flutter, kline
- Language: Dart
- Homepage: https://qiuxiang.github.io/simple_candlestick_chart/
- Size: 9.03 MB
- Stars: 19
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# simple_candlestick_chart [](https://pub.dartlang.org/packages/simple_candlestick_chart)
A simple candlestick chart for flutter. Supports smooth scroll and zoom.
https://user-images.githubusercontent.com/1709072/146329928-de47e1b1-71eb-42b1-85c5-a63a22c8a98d.mp4
## Usage
```dart
import 'package:simple_candlestick_chart/simple_candlestick_chart.dart';
final data = [
CandlestickData(DateTime.parse('2020-01-01 09:15'), 3990.99, 3991.17, 3990.78, 3993.55, 12869.11),
CandlestickData(DateTime.parse('2020-01-01 09:00'), 3991.17, 3989.5, 3985.87, 3993.37, 13191.45),
...
];
SimpleCandlestickChart(
data: data,
increaseColor: Colors.teal,
decreaseColor: Colors.redAccent,
);
```