---
title: PointPlot
framework: charts
role: symbol
role_heading: Structure
path: charts/pointplot
---

# PointPlot

Chart content that represents a collection of data using points.

## Declaration

```swift
struct PointPlot<Content>
```

## Overview

Overview Use PointPlot when you want to visualize data in the same way as with PointMark, 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. Chart {     PointPlot(         flightDelays,         x: .value("Flight Distance", \.distance),         y: .value("Flight Delay", \.delay)     )     .foregroundStyle(by: .value("Airline", \.airline))     .opacity(\.opacity)     .symbolSize(by: .value("Capacity", \.passengerCount))     .symbol(.circle) }

## Topics

### Plotting points from a collection

- [init(_:x:y:)](charts/pointplot/init(_:x:y:)-1a9af.md)
- [init(_:x:y:)](charts/pointplot/init(_:x:y:)-1p6px.md)
- [init(_:x:y:)](charts/pointplot/init(_:x:y:)-72pm2.md)
- [init(_:x:y:)](charts/pointplot/init(_:x:y:)-7frpp.md)
- [init(_:x:y:)](charts/pointplot/init(_:x:y:)-9p3yg.md)

### Supporting types

- [body](charts/chartcontent/body-swift.property.md)
- [VectorizedPointPlotContent](charts/vectorizedpointplotcontent.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)
- [RectanglePlot](charts/rectangleplot.md)
- [RulePlot](charts/ruleplot.md)
- [BarPlot](charts/barplot.md)
- [SectorPlot](charts/sectorplot.md)
- [VectorizedChartContent](charts/vectorizedchartcontent.md)
