One Logo Pool Ball
Charts · IOS API REFERENCE

RulePlot

struct · iOS 18.0+ · SDK 27.1

struct RulePlot<Content>

Chart content that represents a collection of data using a single horizontal or vertical rule. Use `RulePlot` when you want to visualize data in the same way as with ``RuleMark``, but you want to visualize an entire data collection with a single plot. You can initialize and style the plot with simple values or key paths. Add modifiers with `KeyPath` before adding modifiers with simple values. ``` Chart { RulePlot( tasks, xStart: .value("Start time", \.startTime), xEnd: .value("End time", \.endTime), y: .value("Project", \.project) ) .foregroundStyle(by: .value("Status", \.status)) .opacity(\.opacity) .lineStyle(StrokeStyle(lineWidth: 8, lineCap: .round)) } ```

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

11 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

RulePlot.body

This protocol needs associated types that cannot yet cross the bridge.

RulePlot.init(_:xStart:xEnd:y:)

This declaration needs Swift generic type arguments. (no canonical witness for Data)

RulePlot.init(_:x:yStart:yEnd:)

This declaration needs Swift generic type arguments. (no canonical witness for Data)

RulePlot.init(_:xStart:xEnd:y:)

This declaration needs Swift generic type arguments. (no canonical witness for Data)

RulePlot.init(_:xStart:xEnd:y:)

This declaration needs Swift generic type arguments. (no canonical witness for Data)

RulePlot.init(_:x:yStart:yEnd:)

This declaration needs Swift generic type arguments. (no canonical witness for Data)

RulePlot.init(_:x:yStart:yEnd:)

This declaration needs Swift generic type arguments. (no canonical witness for Data)

RulePlot.init(_:xStart:xEnd:y:)

This declaration needs Swift generic type arguments. (no canonical witness for Data)

RulePlot.init(_:xStart:xEnd:y:)

This declaration needs Swift generic type arguments. (no canonical witness for Data)

RulePlot.init(_:x:yStart:yEnd:)

This declaration needs Swift generic type arguments. (no canonical witness for Data)

RulePlot.init(_:x:yStart:yEnd:)

This declaration needs Swift generic type arguments. (no canonical witness for Data)

All Charts types →