loom & weft
Made for Swift.

Unreleased APIs from PR #2. Not in 0.2.1. Stable 0.2.1 reference.

LOOM Unreleased (PR #2) / PLOTTING AND CALENDARS

BarGroup

A group of source-ordered bars with an optional one-row label and shared bar appearance.

Standard inherited Swift protocol operations such as synthesized equality and OptionSet set operations are not repeated. The public declarations below are extracted from the exact source revision listed in the coverage manifest.

Members on this page

Feature guides and release status

BarGroup

Structure
struct BarGroup

Conforms to: Swift.Sendable, Swift.SendableMetatype.

A group of source-ordered bars with an optional one-row label and shared bar appearance.

Source · BarChart.swift:35

bars

Instance Property
var bars: [Bar]

A public field of this type. Its value type and mutability are shown in the declaration.

Source · BarChart.swift:36

label

Instance Property
var label: [TextSpan]

Visible item label.

Source · BarChart.swift:37

style

Instance Property
var style: StylePatch

Visual attributes used when painting this value.

Source · BarChart.swift:38

labelStyle

Instance Property
var labelStyle: StylePatch

A public field of this type. Its value type and mutability are shown in the declaration.

Source · BarChart.swift:39

valueStyle

Instance Property
var valueStyle: StylePatch

A public field of this type. Its value type and mutability are shown in the declaration.

Source · BarChart.swift:40

init(_:label:style:labelStyle:valueStyle:)

Initializer
init(_ bars: [Bar], label: [TextSpan] = [], style: StylePatch = StylePatch(), labelStyle: StylePatch = StylePatch(), valueStyle: StylePatch = StylePatch())

Creates a value with the supplied arguments. Default arguments are shown in the declaration.

Parameters (5)
bars
Argument type and any default are shown in the declaration; see the behavior notes above.
label
Argument type and any default are shown in the declaration; see the behavior notes above.
style
Text/cell appearance.
labelStyle
Argument type and any default are shown in the declaration; see the behavior notes above.
valueStyle
Argument type and any default are shown in the declaration; see the behavior notes above.
Source · BarChart.swift:42

init(_:label:style:labelStyle:valueStyle:)

Initializer
init(_ bars: [Bar], label: String, style: StylePatch = StylePatch(), labelStyle: StylePatch = StylePatch(), valueStyle: StylePatch = StylePatch())

Creates a value with the supplied arguments. Default arguments are shown in the declaration.

Parameters (5)
bars
Argument type and any default are shown in the declaration; see the behavior notes above.
label
Argument type and any default are shown in the declaration; see the behavior notes above.
style
Text/cell appearance.
labelStyle
Argument type and any default are shown in the declaration; see the behavior notes above.
valueStyle
Argument type and any default are shown in the declaration; see the behavior notes above.
Source · BarChart.swift:53