Contents

init(preset:position:values:content:)

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

Declaration

nonisolated init<Value>(preset: AxisMarkPreset = .automatic, position: AxisMarkPosition = .automatic, values: [Value], @AxisMarkBuilder content: @escaping (AxisValue) -> 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 for a given axis value.