KChartWidget constructor
KChartWidget(
- List<
KLineEntity> ? datas, - ChartStyle chartStyle,
- ChartColors chartColors, {
- required bool isTrendLine,
- double xFrontPadding = 100,
- MainState mainState = MainState.MA,
- Set<
SecondaryState> secondaryStateLi = const <SecondaryState>{}, - bool volHidden = false,
- bool isLine = false,
- bool isTapShowInfoDialog = false,
- bool hideGrid = false,
- bool showNowPrice = true,
- bool showInfoDialog = true,
- bool materialInfoDialog = true,
- ChartTranslations chartTranslations = const ChartTranslations(),
- 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,
- 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,
});