---
title: "init(preset:position:values:content:)"
framework: charts
role: symbol
role_heading: Initializer
path: "charts/axismarks/init(preset:position:values:content:)-4a4x7"
---

# init(preset:position:values:content:)

Creates axis markers with the given properties, will override default markers.

## Declaration

```swift
nonisolated init<Value>(preset: AxisMarkPreset = .automatic, position: AxisMarkPosition = .automatic, values: [Value], @AxisMarkBuilder content: @escaping () -> Content) where Value : Plottable
```

## Parameters

- `preset`: The preset of the axis markers.
- `position`: The position of the axis markers.
- `values`: The values of the axis markers.
- `content`: A result builder that returns the content of the axis marker.
