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

# symbol(by:)

Represents data using different kinds of symbols.

## Declaration

```swift
nonisolated func symbol<D>(by value: PlottableValue<D>) -> some ChartContent where D : Plottable

```

## Parameters

- `value`: The data value. value must be categorial, such as String.

## See Also

### Encoding data into mark characteristics

- [foregroundStyle(by:)](charts/chartcontent/foregroundstyle(by:).md)
- [lineStyle(by:)](charts/chartcontent/linestyle(by:).md)
- [position(by:axis:span:)](charts/chartcontent/position(by:axis:span:).md)
- [symbolSize(by:)](charts/chartcontent/symbolsize(by:).md)
