One Logo Pool Ball
Charts · IOS API REFERENCE

SectorPlot

struct · iOS 18.0+ · SDK 27.1

struct SectorPlot<Content>

Chart content that represents a collection of data using a sector of a pie or donut chart, which shows how individual categories make up a meaningful total. Use `SectorPlot` when you want to visualize data in the same way as with ``SectorMark``, but you want to visualize an entire data collection with a single plot. You can initialize and style the plot with simple values or key paths. Add modifiers with `KeyPath` before adding modifiers with simple values. ``` SectorPlot( votes, angle: .value("Vote count", \.voteCount), angularInset: 1 ) .foregroundStyle(by: .value("Party", \.party)) .cornerRadius(4) ```

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

3 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

SectorPlot.body

This protocol needs associated types that cannot yet cross the bridge.

SectorPlot.init(_:angle:innerRadius:outerRadius:angularInset:)

This declaration needs Swift generic type arguments. (no canonical witness for Data)

SectorPlot.init(_:angle:innerRadius:outerRadius:angularInset:)

This declaration needs Swift generic type arguments. (no canonical witness for Data)

All Charts types →