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

# symbol(for:)

Returns the symbol for the given data value. Returns nil if the symbol scale is unavailable, or the value is invalid.

## Declaration

```swift
func symbol<P>(for value: P) -> AnyChartSymbolShape? where P : Plottable
```

## Parameters

- `value`: The data value.

## Return Value

Return Value The symbol corresponding to the data value, or nil if the data value is incompatible with the chart.
