annotation
A container for annotations that live among the data.
Attributes
data-foo="123"
The literal values of attributes prefixed with data-
are assigned on the annotation’s scope.
Attribute dashes are converted to camel case (i.e., data-foo-bar="11"
puts fooBar: 11
on the scope).
map-xy="xDim yDim"
The x
and y
dimensions of the data which should be used to position the annotation, separated by whitespace.
If this aesthetic is used, both scaleX
and scaleY
must be in scope.
map-position="dimension"
The dimension of the data which should be used to position the annotation.
If this aesthetic is used, one of scaleX
or scaleY
must be in scope, but not both.