Bar
A bar mark
One bar per point. Goes in a Chart's marks.
Methods
Bar(options)AnyOne bar per point.
- 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.
- data [Any] required