KChartWidget constructor
KChartWidget({
- required List<
KLineEntity> ? data, - required ChartStyle style,
- required bool isTrendLine,
- double xFrontPadding = 100,
- MainState mainState = MainState.MA,
- SecondaryState secondaryState = SecondaryState.MACD,
- bool volHidden = false,
- bool isLine = false,
- bool isTapShowInfoDialog = false,
- bool hideGrid = false,
- bool showNowPrice = true,
- bool showInfoDialog = true,
- Map<
String, ChartTranslations> translations = kChartTranslations, - List<
String> timeFormat = TimeFormat.YEAR_MONTH_DAY, - dynamic onLoadMore()?,
- List<
int> maDayList = const [5, 10, 20], - int flingTime = 600,
- double flingRatio = 0.5,
- Curve flingCurve = Curves.decelerate,
- dynamic isOnDrag()?,
- String dataFormat(
- double value
Implementation
KChartWidget({
required this.data,
required this.style,
required this.isTrendLine,
this.xFrontPadding = 100,
this.mainState = MainState.MA,
this.secondaryState = SecondaryState.MACD,
this.volHidden = false,
this.isLine = false,
this.isTapShowInfoDialog = false,
this.hideGrid = false,
this.showNowPrice = true,
this.showInfoDialog = true,
this.translations = kChartTranslations,
this.timeFormat = TimeFormat.YEAR_MONTH_DAY,
this.onLoadMore,
this.maDayList = const [5, 10, 20],
this.flingTime = 600,
this.flingRatio = 0.5,
this.flingCurve = Curves.decelerate,
this.isOnDrag,
this.dataFormat
}) {
DEFAULT_FONT_FAMILY = style.fontFamily;
}