loom & weft
Made for Swift.

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

Structure
struct ChartDataset

Conforms to: Swift.Sendable, Swift.SendableMetatype.

One series in chart coordinates; ordering is retained for line segments.

Source · Chart.swift:15

name

Instance Property
var name: String?

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

Source · Chart.swift:16

points

Instance Property
var points: [CanvasPoint]

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

Source · Chart.swift:17

graphType

Instance Property
var graphType: ChartGraphType

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

Source · Chart.swift:18

marker

Instance Property
var marker: CanvasMarker

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

Source · Chart.swift:19

style

Instance Property
var style: Style

Visual attributes used when painting this value.

Source · Chart.swift:20

baseline

Instance Property
var baseline: Double

Horizontal baseline for filled lines; non-finite values suppress the fill.

Source · Chart.swift:22

fillStyle

Instance Property
var fillStyle: Style?

Nil uses the dataset style.

Source · Chart.swift:24

init(name:points:graphType:marker:style:baseline:fillStyle:)

Initializer
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.
Source · Chart.swift:26