Unreleased APIs from PR #2. Not in 0.2.1. Stable 0.2.1 reference.
LOOM Unreleased (PR #2) / PLOTTING AND CALENDARS
ChartDataset
One series in chart coordinates; ordering is retained for line segments.
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
ChartDataset
struct ChartDatasetConforms to: Swift.Sendable, Swift.SendableMetatype.
One series in chart coordinates; ordering is retained for line segments.
Source · Chart.swift:15name
var name: String?A public field of this type. Its value type and mutability are shown in the declaration.
Source · Chart.swift:16points
var points: [CanvasPoint]A public field of this type. Its value type and mutability are shown in the declaration.
Source · Chart.swift:17graphType
var graphType: ChartGraphTypeA public field of this type. Its value type and mutability are shown in the declaration.
Source · Chart.swift:18marker
var marker: CanvasMarkerA public field of this type. Its value type and mutability are shown in the declaration.
Source · Chart.swift:19style
var style: StyleVisual attributes used when painting this value.
Source · Chart.swift:20baseline
var baseline: DoubleHorizontal baseline for filled lines; non-finite values suppress the fill.
Source · Chart.swift:22fillStyle
var fillStyle: Style?Nil uses the dataset style.
Source · Chart.swift:24init(name:points:graphType:marker:style:baseline:fillStyle:)
init(name: String? = nil, points: [CanvasPoint], graphType: ChartGraphType = .line, marker: CanvasMarker = .braille, style: Style = Style(), baseline: Double = 0, fillStyle: Style? = nil)Creates a value with the supplied arguments. Default arguments are shown in the declaration.
Parameters (7)
name- Argument type and any default are shown in the declaration; see the behavior notes above.
points- Argument type and any default are shown in the declaration; see the behavior notes above.
graphType- Argument type and any default are shown in the declaration; see the behavior notes above.
marker- Argument type and any default are shown in the declaration; see the behavior notes above.
style- Text/cell appearance.
baseline- Argument type and any default are shown in the declaration; see the behavior notes above.
fillStyle- Argument type and any default are shown in the declaration; see the behavior notes above.