Area
An area mark
The region between the line and the baseline. Goes in a Chart's marks.
Methods
Area(options)AnyThe region between the line and the baseline.
- 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. Default 0.25, so a line drawn over it stays visible.
- interpolation String
linear (default), curve, monotone, step, stepStart, stepCenter or cardinal.
- data [Any] required