drawVerticalText method

  1. @override
void drawVerticalText(
  1. dynamic canvas,
  2. dynamic textStyle,
  3. int gridRows
)
override

Implementation

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