Chart(points, id: \.self) { point in LineMark( x: .value("time/s", point.timestamp), y: .value("potential/mV", point.potential) ) .foregroundStyle(by: .value("Electrode", point.electrode.symbol)) } .chartLegend(position: .bottom) <--- // ...
Chart(points, id: \.self) { point in LineMark( x: .value("time/s", point.timestamp), y: .value("potential/mV", point.potential) ) .foregroundStyle(by: .value("Electrode", point.electrode.symbol)) } .chartLegend(position: .bottom) <--- // ...