Published release 0.2.1. Unreleased PR #2 reference.
LOOM 0.2.1 / 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
struct BarGroupConforms to: Swift.Sendable, Swift.SendableMetatype.
A group of source-ordered bars with an optional one-row label and shared bar appearance.
Source · BarChart.swift:35bars
var bars: [Bar]A public field of this type. Its value type and mutability are shown in the declaration.
Source · BarChart.swift:36label
var label: [TextSpan]Visible item label.
Source · BarChart.swift:37style
var style: StylePatchVisual attributes used when painting this value.
Source · BarChart.swift:38labelStyle
var labelStyle: StylePatchA public field of this type. Its value type and mutability are shown in the declaration.
Source · BarChart.swift:39valueStyle
var valueStyle: StylePatchA public field of this type. Its value type and mutability are shown in the declaration.
Source · BarChart.swift:40init(_:label:style:labelStyle:valueStyle:)
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.
init(_:label:style:labelStyle:valueStyle:)
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.