---
title: SectorPlot
framework: charts
role: symbol
role_heading: Structure
path: charts/sectorplot
---

# SectorPlot

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.

## Declaration

```swift
struct SectorPlot<Content>
```

## Overview

Overview 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)

## Topics

### Plotting sectors from a collection

- [init(_:angle:innerRadius:outerRadius:angularInset:)](charts/sectorplot/init(_:angle:innerradius:outerradius:angularinset:)-1ed01.md)
- [init(_:angle:innerRadius:outerRadius:angularInset:)](charts/sectorplot/init(_:angle:innerradius:outerradius:angularinset:)-9pmo7.md)

### Supporting types

- [body](charts/chartcontent/body-swift.property.md)
- [VectorizedSectorPlotContent](charts/vectorizedsectorplotcontent.md)

## Relationships

### Conforms To

- [ChartContent](charts/chartcontent.md)
- [Copyable](swift/copyable.md)
- [Escapable](swift/escapable.md)
- [VectorizedChartContent](charts/vectorizedchartcontent.md)

## See Also

### Vectorized plots

- [Creating a data visualization dashboard with Swift Charts](charts/creating-a-data-visualization-dashboard-with-swift-charts.md)
- [AreaPlot](charts/areaplot.md)
- [LinePlot](charts/lineplot.md)
- [PointPlot](charts/pointplot.md)
- [RectanglePlot](charts/rectangleplot.md)
- [RulePlot](charts/ruleplot.md)
- [BarPlot](charts/barplot.md)
- [VectorizedChartContent](charts/vectorizedchartcontent.md)
