Contents

chartForegroundStyleScale(domain:mapping:)

Configures the foreground style scale for charts.

Declaration

nonisolated func chartForegroundStyleScale<Domain, S>(domain: Domain, mapping: @escaping (Domain.Element) -> S) -> some View where Domain : Collection, S : ShapeStyle, Domain.Element : Plottable

Parameters

  • domain:

    The possible data values plotted as foreground style in the chart.

  • mapping:

    Maps data categories to foreground styles.

See Also

Styles