<!--
{
  "availability" : [
    "iOS: 16.4.0 -",
    "iPadOS: 16.4.0 -",
    "macCatalyst: 16.4.0 -",
    "macOS: 13.3.0 -",
    "tvOS: 16.4.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Charts",
  "identifier" : "/documentation/Charts/ChartProxy/symbol(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Swift Charts",
      "Charts"
    ],
    "preciseIdentifier" : "s:6Charts10ChartProxyV6symbol3forAA03AnyB11SymbolShapeVSgx_tAA9PlottableRzlF"
  },
  "title" : "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.

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

## Parameters

`value`

The data value.

## Return Value

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)