You can try to serve all the data as one array, but add the data element to the field "come true": Bool and depending on this field specify the color of the graph.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: