Просмотр исходного кода

comment out scale modifier on basal and glucose chart

polscm32 2 лет назад
Родитель
Сommit
5e6498be75
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      FreeAPS/Sources/Modules/Home/View/Chart/MainChartView2.swift

+ 3 - 3
FreeAPS/Sources/Modules/Home/View/Chart/MainChartView2.swift

@@ -207,9 +207,9 @@ extension MainChartView2 {
             }.id("MainChart")
                 .frame(
                     width: max(0, screenSize.width - 20, fullWidth(viewWidth: screenSize.width)),
-                    height: min(screenSize.height, 200)
+                    height: min(screenSize.height, 300)
                 )
-                .chartYScale(domain: 0 ... 450)
+//                .chartYScale(domain: 0 ... 450)
                 .chartXAxis {
                     AxisMarks(values: .stride(by: .hour, count: 2)) { _ in
                         if displayXgridLines {
@@ -279,7 +279,7 @@ extension MainChartView2 {
                 }
             }
             .frame(height: 80)
-            .chartYScale(domain: 0 ... maxBasal)
+//            .chartYScale(domain: 0 ... maxBasal)
             //            .rotationEffect(.degrees(180))
             //            .chartXAxis(.hidden)
             .chartXAxis {