chartLineStyleScale(domain:range:)
Configures the line style scale for charts.
Declaration
nonisolated func chartLineStyleScale<Domain, Range>(domain: Domain, range: Range) -> some View where Domain : ScaleDomain, Range : ScaleRange, Range.VisualValue == StrokeStyle
Parameters
- domain:
The possible data values plotted as line styles in the chart. You can define the domain with an array for categorical values (e.g.,
["A", "B", "C"]) - range:
The range of line styles that correspond to the scale domain.