loom & weft
Made for Swift.

Published release 0.2.1. Unreleased PR #2 reference.

LOOM 0.2.1 / PLOTTING AND CALENDARS

SparklineBar

A one-column sample.

Nil and non-finite values are missing; negative values draw as zero.

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

SparklineBar

Structure
struct SparklineBar

Conforms to: Swift.Sendable, Swift.SendableMetatype.

A one-column sample.

Nil and non-finite values are missing; negative values draw as zero.

Source · Sparkline.swift:6

value

Instance Property
var value: Double?

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

Source · Sparkline.swift:7

patch

Instance Property
var patch: StylePatch

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

Source · Sparkline.swift:8

init(_:patch:)

Initializer
init(_ value: Double?, patch: StylePatch = StylePatch())

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.
patch
Argument type and any default are shown in the declaration; see the behavior notes above.
Source · Sparkline.swift:10