Contents

chartForegroundStyleScale(domain:type:)

Configures the foreground style scale for charts.

Declaration

nonisolated func chartForegroundStyleScale<Domain>(domain: Domain, type: ScaleType? = nil) -> some View where Domain : ScaleDomain

Parameters

  • domain:

    The possible data values plotted as foreground style in the chart. You can define the domain with a ClosedRange for number or Date values (e.g., 0 ... 500), and with an array for categorical values (e.g., ["A", "B", "C"])

  • type:

    The scale type.

See Also

Styles