drawVerticalText method
Implementation
@override
void drawVerticalText(canvas, textStyle, int gridRows) {
TextSpan span = TextSpan(
text: "${NumberUtil.formatCompact(maxValue)}",
style: textStyle,
);
TextPainter tp = TextPainter(text: span, textDirection: TextDirection.ltr);
tp.layout();
tp.paint(
canvas,
Offset(
chartRect.width - tp.width - chartStyle.space,
chartRect.top - topPadding,
),
);
}