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

# zIndex(_:)

Controls the display order of overlapping chart content.

## Declaration

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

```

## Parameters

- `value`: A relative front-to-back ordering for this view; the default is 0.

## See Also

### Layering chart content

- [compositingLayer()](charts/chartcontent/compositinglayer().md)
- [compositingLayer(style:)](charts/chartcontent/compositinglayer(style:).md)
