drawAxes method

void drawAxes(
  1. Canvas canvas,
  2. Size size,
  3. double minX,
  4. double maxX,
  5. double minY,
  6. double maxY,
)

Draw axes

Implementation

void drawAxes(
  Canvas canvas,
  Size size,
  double minX,
  double maxX,
  double minY,
  double maxY,
) {
  if (!showAxis || !theme.showAxis) return;

  final paint = Paint()
    ..color = theme.axisColor.withValues(alpha: 0.6)
    ..strokeWidth = 1.0
    ..style = PaintingStyle.stroke;

  // X-axis (bottom) - only bottom axis for cleaner look
  canvas.drawLine(
    Offset(0, size.height),
    Offset(size.width, size.height),
    paint,
  );

  // Y-axis (left)
  canvas.drawLine(const Offset(0, 0), Offset(0, size.height), paint);
}