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

# opacity(_:)

Sets the opacity for the chart content.

## Declaration

```swift
nonisolated func opacity(_ value: Double) -> some ChartContent

```

## See Also

### Styling marks

- [foregroundStyle(_:)](charts/chartcontent/foregroundstyle(_:).md)
- [blur(radius:)](charts/chartcontent/blur(radius:).md)
- [cornerRadius(_:style:)](charts/chartcontent/cornerradius(_:style:).md)
- [lineStyle(_:)](charts/chartcontent/linestyle(_:).md)
- [shadow(color:radius:x:y:)](charts/chartcontent/shadow(color:radius:x:y:).md)
- [interpolationMethod(_:)](charts/chartcontent/interpolationmethod(_:).md)
