Line
A line mark
A line through the points. Goes in a Chart's marks.
Methods
Line(options)AnyA line through the points.
- options Any required
- data [Any] required
The points, as [{ x, y, series }]. x is a number, a string or a DateTime; y is always a number. series is optional: it is the colour channel, and points that share one share a colour and get a legend entry.
- name String
The series every point of this mark belongs to, for when they all belong to the same one. A point's own series wins over it.
- color Color
Defaults to the accent colour. Ignored once a series is in play, where the colour comes from the chart's scale instead.
- opacity Number
0 to 1.
- lineWidth Number
Thickness. Default 2.
- interpolation String
linear (default), curve, monotone, step, stepStart, stepCenter or cardinal.
- data [Any] required