mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Drop filtering of 101%
This commit is contained in:
parent
35f99173ba
commit
676662bb4f
1 changed files with 9 additions and 11 deletions
|
|
@ -34,18 +34,16 @@ struct DeviceMetricsLog: View {
|
|||
|
||||
Chart {
|
||||
ForEach(chartData, id: \.self) { point in
|
||||
if point.batteryLevel != 101 { // Filter out magic charging value
|
||||
Plot {
|
||||
LineMark(
|
||||
x: .value("x", point.time!),
|
||||
y: .value("y", point.batteryLevel)
|
||||
)
|
||||
}
|
||||
.accessibilityLabel("Line Series")
|
||||
.accessibilityValue("X: \(point.time!), Y: \(point.batteryLevel)")
|
||||
.foregroundStyle(batteryChartColor)
|
||||
.interpolationMethod(.linear)
|
||||
Plot {
|
||||
LineMark(
|
||||
x: .value("x", point.time!),
|
||||
y: .value("y", point.batteryLevel)
|
||||
)
|
||||
}
|
||||
.accessibilityLabel("Line Series")
|
||||
.accessibilityValue("X: \(point.time!), Y: \(point.batteryLevel)")
|
||||
.foregroundStyle(batteryChartColor)
|
||||
.interpolationMethod(.linear)
|
||||
|
||||
Plot {
|
||||
PointMark(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue