BaseChartPainter constructor
BaseChartPainter(
- ChartStyle chartStyle, {
- List<
KLineEntity> ? datas, - required double scaleX,
- required double scrollX,
- required bool isLongPress,
- required double selectX,
- required double xFrontPadding,
- required BaseDimension baseDimension,
- bool isOnTap = false,
- MainState mainState = MainState.MA,
- bool volHidden = false,
- bool isTapShowInfoDialog = false,
- Set<
SecondaryState> secondaryStateLi = const <SecondaryState>{}, - bool isLine = false,
constructor BaseChartPainter
Implementation
BaseChartPainter(
this.chartStyle, {
this.datas,
required this.scaleX,
required this.scrollX,
required this.isLongPress,
required this.selectX,
required this.xFrontPadding,
required this.baseDimension,
this.isOnTap = false,
this.mainState = MainState.MA,
this.volHidden = false,
this.isTapShowInfoDialog = false,
this.secondaryStateLi = const <SecondaryState>{},
this.isLine = false,
}) {
mItemCount = datas?.length ?? 0;
mPointWidth = this.chartStyle.pointWidth;
mTopPadding = this.chartStyle.topPadding;
mBottomPadding = this.chartStyle.bottomPadding;
mChildPadding = this.chartStyle.childPadding;
mGridRows = this.chartStyle.gridRows;
mGridColumns = this.chartStyle.gridColumns;
mDataLen = mItemCount * mPointWidth;
initFormats();
}