loom & weft
Made for Swift.

Published release 0.2.1. Unreleased PR #2 reference.

LOOM 0.2.1 / PLOTTING AND CALENDARS

ChartAxisLabel

A custom tick label at a numeric coordinate.

Text is clipped as complete terminal glyphs.

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

ChartAxisLabel

Structure
struct ChartAxisLabel

Conforms to: Swift.Sendable, Swift.SendableMetatype.

A custom tick label at a numeric coordinate.

Text is clipped as complete terminal glyphs.

Source · Chart.swift:35

value

Instance Property
var value: Double

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

Source · Chart.swift:36

spans

Instance Property
var spans: [TextSpan]

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

Source · Chart.swift:37

init(value:text:style:)

Initializer
init(value: Double, text: String, style: Style? = nil)

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

Parameters (3)
value
Argument type and any default are shown in the declaration; see the behavior notes above.
text
Source text.
style
Text/cell appearance.
Source · Chart.swift:39

init(value:spans:)

Initializer
init(value: Double, spans: [TextSpan])

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

Parameters (2)
value
Argument type and any default are shown in the declaration; see the behavior notes above.
spans
Styled source spans, in order.
Source · Chart.swift:43