|
@@ -165,20 +165,20 @@ struct ForecastChart: View {
|
|
|
.chartYScale(domain: state.units == .mgdL ? 0 ... 300 : 0.asMmolL ... 300.asMmolL)
|
|
.chartYScale(domain: state.units == .mgdL ? 0 ... 300 : 0.asMmolL ... 300.asMmolL)
|
|
|
.chartLegend {
|
|
.chartLegend {
|
|
|
if state.forecastDisplayType == ForecastDisplayType.lines {
|
|
if state.forecastDisplayType == ForecastDisplayType.lines {
|
|
|
- HStack {
|
|
|
|
|
- HStack {
|
|
|
|
|
|
|
+ HStack(spacing: 10) {
|
|
|
|
|
+ HStack(spacing: 4) {
|
|
|
Image(systemName: "circle.fill").foregroundStyle(Color.insulin)
|
|
Image(systemName: "circle.fill").foregroundStyle(Color.insulin)
|
|
|
Text("IOB").foregroundStyle(Color.secondary)
|
|
Text("IOB").foregroundStyle(Color.secondary)
|
|
|
}
|
|
}
|
|
|
- HStack {
|
|
|
|
|
|
|
+ HStack(spacing: 4) {
|
|
|
Image(systemName: "circle.fill").foregroundStyle(Color.uam)
|
|
Image(systemName: "circle.fill").foregroundStyle(Color.uam)
|
|
|
Text("UAM").foregroundStyle(Color.secondary)
|
|
Text("UAM").foregroundStyle(Color.secondary)
|
|
|
}
|
|
}
|
|
|
- HStack {
|
|
|
|
|
|
|
+ HStack(spacing: 4) {
|
|
|
Image(systemName: "circle.fill").foregroundStyle(Color.zt)
|
|
Image(systemName: "circle.fill").foregroundStyle(Color.zt)
|
|
|
Text("ZT").foregroundStyle(Color.secondary)
|
|
Text("ZT").foregroundStyle(Color.secondary)
|
|
|
}
|
|
}
|
|
|
- HStack {
|
|
|
|
|
|
|
+ HStack(spacing: 4) {
|
|
|
Image(systemName: "circle.fill").foregroundStyle(Color.orange)
|
|
Image(systemName: "circle.fill").foregroundStyle(Color.orange)
|
|
|
Text("COB").foregroundStyle(Color.secondary)
|
|
Text("COB").foregroundStyle(Color.secondary)
|
|
|
}
|
|
}
|