---
title: "foregroundStyleDomain(dataType:)"
framework: charts
role: symbol
role_heading: Instance Method
path: "charts/chartproxy/foregroundstyledomain(datatype:)"
---

# foregroundStyleDomain(dataType:)

## Declaration

```swift
func foregroundStyleDomain<P>(dataType: P.Type) -> [P] where P : Plottable
```
