k_chart_flutter 0.1.3
k_chart_flutter: ^0.1.3 copied to clipboard
A k chart in FLutter. Support gesture drag, scale, long press, fling. Support MA, BOLL, MACD, KDJ, RSI, WR, CCI.
k_chart_flutter #
A high-performance, interactive candlestick (K-line) and line chart widget for Flutter, designed for crypto and financial data visualization.
- Gesture support: drag, scale, long press, fling
- Main chart indicators: MA, BOLL
- Secondary indicators: MACD, KDJ, RSI, WR, CCI
- Customizable style and internationalization
- Suitable for crypto, stock, and other financial charts
Installation #
dependencies:
k_chart_flutter: ^1.0.0
copied to clipboard
Quick Start #
// Initialize data
data = DataUtil.calculate(data);
// Use the KChartWidget
KChartWidget(
data: data,
style: ChartStyle(),
isLine: true,
isTrendLine: false,
mainState: MainState.MA,
volHidden: false,
secondaryState: SecondaryState.MACD,
timeFormat: TimeFormat.YEAR_MONTH_DAY,
translations: {
'en': ChartTranslations(
date: 'Date',
open: 'Open',
high: 'High',
low: 'Low',
close: 'Close',
changeAmount: 'Change',
change: 'Change %',
amount: 'Volume',
)
},
showNowPrice: true,
hideGrid: true,
isTapShowInfoDialog: true,
maDayList: const [1, 100, 1000],
dataFormat: (value) => value.toStringAsFixed(2)
)
copied to clipboard
Example #
A full demo app is available at examples/k_chart_demo
in this repository. You can run and debug it locally.
Contributing #
Issues and PRs are welcome!
License #
MIT