From d70c7e60acc74ff0cec1f6cd1910348c02c476f2 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Thu, 30 Nov 2023 23:41:14 -0800 Subject: [PATCH] Fix detection sensor graph --- Meshtastic/Views/Nodes/DetectionSensorLog.swift | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Meshtastic/Views/Nodes/DetectionSensorLog.swift b/Meshtastic/Views/Nodes/DetectionSensorLog.swift index 27fe7198..bf4e7e56 100644 --- a/Meshtastic/Views/Nodes/DetectionSensorLog.swift +++ b/Meshtastic/Views/Nodes/DetectionSensorLog.swift @@ -33,7 +33,7 @@ struct DetectionSensorLog: View { ForEach(chartData, id: \.self) { point in Plot { BarMark( - x: .value("x", point.timestamp), + x: .value("x", point.timestamp, unit: .hour), y: .value("y", 1) ) } @@ -52,12 +52,8 @@ struct DetectionSensorLog: View { } .chartXAxis(content: { AxisMarks(position: .top) -// AxisMarks(position: .top, values: .stride(by: .hour)) { date in -// AxisValueLabel(format: .dateTime.hour()) -// } }) .chartXAxis(.automatic) - .chartYScale(domain: 0...20) .chartForegroundStyleScale([ "Detection events": .green ])