drawAxes method
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);
}