BaseChartRenderer<T> constructor
BaseChartRenderer<T> ({})
Implementation
BaseChartRenderer({
required this.style,
required this.chartRect,
required this.maxValue,
required this.minValue,
this.dataFormat
}) {
if (maxValue == minValue) {
maxValue *= 1.5;
minValue /= 2;
}
scaleY = chartRect.height / (maxValue - minValue);
gridPaint.color = style.colors.grid;
}