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,
mainState,
isLine,
fixedLength,
this.chartStyle,
this.chartColors,
this.scaleX,
verticalTextAlignment,
maDayList,
);
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,
secondaryStateLi.elementAt(i),
fixedLength,
chartStyle,
chartColors,
));
}
}