chartForegroundStyleScale(mapping:)
Configures the foreground style scale for charts.
Declaration
nonisolated func chartForegroundStyleScale<DataValue, S>(mapping: @escaping (DataValue) -> S) -> some View where DataValue : Plottable, S : ShapeStyle
Parameters
- mapping:
Maps data categories to foreground styles.