---
title: "symbol(symbol:)"
framework: charts
role: symbol
role_heading: Instance Method
path: "charts/chartcontent/symbol(symbol:)"
---

# symbol(symbol:)

Sets a SwiftUI view to use as the symbol for the chart content.

## Declaration

```swift
nonisolated func symbol<V>(@ViewBuilder symbol: () -> V) -> some ChartContent where V : View

```

## Parameters

- `symbol`: The view to use as the plotting symbol.

## See Also

### Setting symbol appearance

- [symbol(_:)](charts/chartcontent/symbol(_:).md)
- [symbolSize(_:)](charts/chartcontent/symbolsize(_:)-7s0vk.md)
- [symbolSize(_:)](charts/chartcontent/symbolsize(_:)-8dtyt.md)
