KChartWidget constructor
KChartWidget(
- List<
KLineEntity> ? datas, - ChartStyle chartStyle,
- ChartColors chartColors, {
- required bool isTrendLine,
- double xFrontPadding = 100,
- MainState mainState = MainState.MA,
- SecondaryState secondaryState = SecondaryState.MACD,
- dynamic onSecondaryTap()?,
- bool volHidden = false,
- bool isLine = false,
- bool isTapShowInfoDialog = false,
- bool hideGrid = false,
- @Deprecated('Use `translations` instead.') bool isChinese = false,
- bool showNowPrice = true,
- bool showInfoDialog = true,
- bool materialInfoDialog = true,
- Map<
String, ChartTranslations> translations = kChartTranslations, - List<
String> timeFormat = TimeFormat.YEAR_MONTH_DAY, - dynamic onLoadMore()?,
- int fixedLength = 2,
- List<
int> maDayList = const [5, 10, 20], - int flingTime = 600,
- double flingRatio = 0.5,
- Curve flingCurve = Curves.decelerate,
- dynamic isOnDrag()?,
- VerticalTextAlignment verticalTextAlignment = VerticalTextAlignment.left,
Implementation
KChartWidget(
this.datas,
this.chartStyle,
this.chartColors, {
required this.isTrendLine,
this.xFrontPadding = 100,
this.mainState = MainState.MA,
this.secondaryState = SecondaryState.MACD,
this.onSecondaryTap,
this.volHidden = false,
this.isLine = false,
this.isTapShowInfoDialog = false,
this.hideGrid = false,
@Deprecated('Use `translations` instead.') this.isChinese = false,
this.showNowPrice = true,
this.showInfoDialog = true,
this.materialInfoDialog = true,
this.translations = kChartTranslations,
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,
});