Adapt SwiftUI Chart Colour on Cell Selection

How do I best adapt the color of my SwiftUI charts when the cell in a list is selected?

The text color seems to be changing automatically to white, but how do I achieve the same for the graph? I'm using primary and secondary color in my graph like this:

LineMark(...)
    .foregroundStyle(.primary)
LineMark(...)
    .foregroundStyle(.secondary)

Adapt SwiftUI Chart Colour on Cell Selection
 
 
Q