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

Bar

A chart value with optional styled label, display text and inherited appearance changes.

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

Bar

Structure
struct Bar

Conforms to: Swift.Sendable, Swift.SendableMetatype.

A chart value with optional styled label, display text and inherited appearance changes.

Source · BarChart.swift:4

value

Instance Property
var value: Double

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

Source · BarChart.swift:5

label

Instance Property
var label: [TextSpan]

Visible item label.

Source · BarChart.swift:6

textValue

Instance Property
var textValue: String?

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

Source · BarChart.swift:7

style

Instance Property
var style: StylePatch

Visual attributes used when painting this value.

Source · BarChart.swift:8

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:9

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:10

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

Initializer
init(_ value: Double, label: String = "", textValue: String? = nil, style: StylePatch = StylePatch(), labelStyle: StylePatch = StylePatch(), valueStyle: StylePatch = StylePatch())

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

Parameters (6)
value
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.
textValue
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:12

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

Initializer
init(_ value: Double, label: [TextSpan], textValue: String? = nil, style: StylePatch = StylePatch(), labelStyle: StylePatch = StylePatch(), valueStyle: StylePatch = StylePatch())

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

Parameters (6)
value
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.
textValue
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:21