mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Fix detection sensor graph
This commit is contained in:
parent
9c57bdd4c4
commit
d70c7e60ac
1 changed files with 1 additions and 5 deletions
|
|
@ -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
|
||||
])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue