From 4e30a550e1abfa19df653c0e4bd8294a338c2dc5 Mon Sep 17 00:00:00 2001
From: hihihaha <jkristof69420@gmail.com>
Date: Thu, 8 Jun 2023 15:57:22 +0200
Subject: [PATCH] fix chart overflow

---
 filcnaplo_mobile_ui/lib/pages/grades/graph.dart | 1 +
 1 file changed, 1 insertion(+)

diff --git a/filcnaplo_mobile_ui/lib/pages/grades/graph.dart b/filcnaplo_mobile_ui/lib/pages/grades/graph.dart
index 7be4c4d..5e0baa9 100755
--- a/filcnaplo_mobile_ui/lib/pages/grades/graph.dart
+++ b/filcnaplo_mobile_ui/lib/pages/grades/graph.dart
@@ -270,6 +270,7 @@ class _GradeGraphState extends State<GradeGraph> {
                                 tData.sort((a, b) => a.writeDate.compareTo(b.writeDate));
                                 return tData.first.writeDate.add(const Duration(days: 120)).isBefore(tData.last.writeDate) ? 2.0 : 1.0;
                               }(),
+                              checkToShowTitle: (double minValue, double maxValue, SideTitles sideTitles, double appliedInterval, double value) { if (value == maxValue || value == minValue) return false; return true; },
                             ),
                             leftTitles: SideTitles(
                               showTitles: true,