k_chart_flutter 0.1.3 copy "k_chart_flutter: ^0.1.3" to clipboard
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

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)
)

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

3
likes
140
points
58
downloads

Publisher

verified publisherfxwallet.com

Weekly Downloads

A k chart in FLutter. Support gesture drag, scale, long press, fling. Support MA, BOLL, MACD, KDJ, RSI, WR, CCI.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on k_chart_flutter