initChartRenderer method
init chart renderer
Implementation
@override
void initChartRenderer() {
// if (datas != null && datas!.isNotEmpty) {
// var t = datas![0];
// fixedLength = NumberUtil.getMaxDecimalLength(t.open, t.close, t.high, t.low);
// }
mMainRenderer = MainRenderer(
mMainRect,
mMainMaxValue,
mMainMinValue,
mTopPadding,
mainIndicators,
isLine,
fixedLength,
this.chartStyle,
this.chartColors,
this.scaleX,
verticalTextAlignment,
mBottomPadding,
);
if (mVolRect != null) {
mVolRenderer = VolRenderer(
mVolRect!,
mVolMaxValue,
mVolMinValue,
mChildPadding,
fixedLength,
this.chartStyle,
this.chartColors,
);
}
mSecondaryRendererList.clear();
for (int i = 0; i < mSecondaryRectList.length; ++i) {
mSecondaryRendererList.add(SecondaryRenderer(
mSecondaryRectList[i].mRect,
mSecondaryRectList[i].mMaxValue,
mSecondaryRectList[i].mMinValue,
mChildPadding,
secondaryIndicators[i],
fixedLength,
chartStyle,
chartColors));
}
}