Skip to content

Candlestick chart derived from k_chart_flutter. Includes customizable indicators.

License

Notifications You must be signed in to change notification settings

KevlarTheGreat/quant_chart

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quant_chart

K chart widget in Flutter.

  • Support gesture drag, scale, long press, fling.
  • Support MA, BOLL for main chart.
  • Support MACD, KDJ, RSI, WR, CCI for secondary chart.

Getting Started

Install

dependencies:
  quant_chart: ^0.0.1

Usage

// Init data.
DataUtil.calculate(data);

// Use k chart widget:
QuantChart(
  data: data,
  style: ChartStyle(),
  isLine: true,
  isTrendLine: false,
  mainState: MainState.MA,
  volHidden: false,
  secondaryState: SecondaryState.MACD,
  timeFormat: TimeFormat.YEAR_MONTH_DAY,
  translations: {
    'zh_CN': ChartTranslations(
      date: '时间',
      open: '开',
      high: '高',
      low: '低',
      close: '收',
      changeAmount: '涨跌额',
      change: '涨跌幅',
      amount: '成交额',
    )
  },
  showNowPrice: true,
  hideGrid: true,
  isTapShowInfoDialog: true,
  maDayList: const [1, 100, 1000],
  dataFormat: (value) => value.toStringAsFixed(2)
)

About

Candlestick chart derived from k_chart_flutter. Includes customizable indicators.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 73.2%
  • C++ 13.2%
  • CMake 11.2%
  • HTML 1.2%
  • Swift 0.6%
  • C 0.5%
  • Other 0.1%