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

# foregroundStyle(by:)

## Declaration

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

```
