clipShape(_:style:)
Sets a clip shape for the chart content.
Declaration
nonisolated func clipShape(_ shape: some Shape, style: FillStyle = FillStyle()) -> some ChartContent
Parameters
- shape:
The clip shape. The shape fills each mark’s frame.
- style:
The fill to use when rasterizing the shape.