I want to draw an AreaMark chart with SwiftUI, with different colors based on some properties of my points that are not y, like this:
Setting a foregroundStyle for each point will set the color of the last point. It looks pretty easy to set the color of linemarks and areamarks based on the y value, but I can't find how to base it on custom criteria. Is it possible to do it with Charts?