Published release 0.2.1. Unreleased PR #2 reference.
LOOM 0.2.1 / 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:13name
var name: String?A public field of this type. Its value type and mutability are shown in the declaration.
Source · Chart.swift:14points
var points: [CanvasPoint]A public field of this type. Its value type and mutability are shown in the declaration.
Source · Chart.swift:15graphType
var graphType: ChartGraphTypeA public field of this type. Its value type and mutability are shown in the declaration.
Source · Chart.swift:16marker
var marker: CanvasMarkerA public field of this type. Its value type and mutability are shown in the declaration.
Source · Chart.swift:17style
var style: StyleVisual attributes used when painting this value.
Source · Chart.swift:18init(name:points:graphType:marker:style:)
init(name: String? = nil, points: [CanvasPoint], graphType: ChartGraphType = .line, marker: CanvasMarker = .braille, style: Style = Style())Creates a value with the supplied arguments. Default arguments are shown in the declaration.
Parameters (5)
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.