KChartWidget constructor

KChartWidget(
  1. List<KLineEntity>? datas,
  2. ChartStyle chartStyle,
  3. ChartColors chartColors, {
  4. required bool isTrendLine,
  5. double xFrontPadding = 100,
  6. MainState mainState = MainState.MA,
  7. Set<SecondaryState> secondaryStateLi = const <SecondaryState>{},
  8. bool volHidden = false,
  9. bool isLine = false,
  10. bool isTapShowInfoDialog = false,
  11. bool hideGrid = false,
  12. bool showNowPrice = true,
  13. bool showInfoDialog = true,
  14. bool materialInfoDialog = true,
  15. ChartTranslations chartTranslations = const ChartTranslations(),
  16. List<String> timeFormat = TimeFormat.YEAR_MONTH_DAY,
  17. dynamic onLoadMore(
    1. bool
    )?,
  18. int fixedLength = 2,
  19. List<int> maDayList = const [5, 10, 20],
  20. int flingTime = 600,
  21. double flingRatio = 0.5,
  22. Curve flingCurve = Curves.decelerate,
  23. dynamic isOnDrag(
    1. bool
    )?,
  24. VerticalTextAlignment verticalTextAlignment = VerticalTextAlignment.left,
  25. double mBaseHeight = 360,
})

Implementation

KChartWidget(
  this.datas,
  this.chartStyle,
  this.chartColors, {
  required this.isTrendLine,
  this.xFrontPadding = 100,
  this.mainState = MainState.MA,
  this.secondaryStateLi = const <SecondaryState>{},
  // this.onSecondaryTap,
  this.volHidden = false,
  this.isLine = false,
  this.isTapShowInfoDialog = false,
  this.hideGrid = false,
  this.showNowPrice = true,
  this.showInfoDialog = true,
  this.materialInfoDialog = true,
  this.chartTranslations = const ChartTranslations(),
  this.timeFormat = TimeFormat.YEAR_MONTH_DAY,
  this.onLoadMore,
  this.fixedLength = 2,
  this.maDayList = const [5, 10, 20],
  this.flingTime = 600,
  this.flingRatio = 0.5,
  this.flingCurve = Curves.decelerate,
  this.isOnDrag,
  this.verticalTextAlignment = VerticalTextAlignment.left,
  this.mBaseHeight = 360,
});