Published release 0.2.1. Unreleased PR #2 reference.
LOOM 0.2.1 / 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
struct BarConforms to: Swift.Sendable, Swift.SendableMetatype.
A chart value with optional styled label, display text and inherited appearance changes.
Source · BarChart.swift:4value
var value: DoubleA public field of this type. Its value type and mutability are shown in the declaration.
Source · BarChart.swift:5label
var label: [TextSpan]Visible item label.
Source · BarChart.swift:6textValue
var textValue: String?A public field of this type. Its value type and mutability are shown in the declaration.
Source · BarChart.swift:7style
var style: StylePatchVisual attributes used when painting this value.
Source · BarChart.swift:8labelStyle
var labelStyle: StylePatchA public field of this type. Its value type and mutability are shown in the declaration.
Source · BarChart.swift:9valueStyle
var valueStyle: StylePatchA public field of this type. Its value type and mutability are shown in the declaration.
Source · BarChart.swift:10init(_:label:textValue:style:labelStyle:valueStyle:)
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.
init(_:label:textValue:style:labelStyle:valueStyle:)
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.