---
title: "init(preset:position:values:stroke:)"
framework: charts
role: symbol
role_heading: Initializer
path: "charts/axismarks/init(preset:position:values:stroke:)-8uk65"
---

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

Creates axis markers with the given properties, will override default markers. Default content will be used for the axis markers.

## Declaration

```swift
nonisolated init(preset: AxisMarkPreset = .automatic, position: AxisMarkPosition = .automatic, values: AxisMarkValues = .automatic, stroke: StrokeStyle? = nil) where Content == Never
```

## Parameters

- `preset`: The preset of the axis markers.
- `position`: The position of the axis markers.
- `values`: The values of the axis markers.
- `stroke`: The stroke to use for grid lines and ticks.
