drawVerticalAxesLine method

  1. @override
void drawVerticalAxesLine(
  1. Canvas canvas,
  2. ChartAxisRenderer axisRenderer,
  3. SfCartesianChart chartState
)

To draw the vertical axis line

Implementation

@override
void drawVerticalAxesLine(Canvas canvas, ChartAxisRenderer axisRenderer,
    SfCartesianChart chartState) {
  final ChartAxis axis = axisRenderer._axis;
  final Rect rect = Rect.fromLTWH(
      axisRenderer._bounds.left,
      axisRenderer._bounds.top - axis.plotOffset,
      axisRenderer._bounds.width,
      axisRenderer._bounds.height + 2 * axis.plotOffset);
  final _CustomPaintStyle paintStyle = _CustomPaintStyle(
      axisRenderer.getAxisLineWidth(axis),
      axisRenderer.getAxisLineColor(axis) ??
          _chartState._chartTheme.axisLineColor,
      PaintingStyle.stroke);
  _drawDashedPath(canvas, paintStyle, Offset(rect.left, rect.top),
      Offset(rect.left, rect.top + rect.height), axis.axisLine.dashArray);
}