Mark
Subclasses: Path, Circle, Text, Image
The Mark class represents a primitive building block of a visualization. There are different types of marks, implemented as the child classes of Mark: Path, Circle, Text, and Image.
Properties
| property | explanation | type | default value |
|---|---|---|---|
bounds ![]() | the bounding rectangle of the mark | Rectangle | |
| dataScope | the data scope of the mark | DataScope | undefined |
| fillColor | the fill color of the mark | Color | undefined |
id ![]() | the unique id of the mark | String | |
| opacity | the opacity of the mark (between 0 and 1) | Number | 1 |
| strokeColor | the stroke color of the mark | Color | undefined |
| strokeDash | the dashes and gaps for the mark stroke | String | undefined |
| strokeWidth | the stroke width of the mark in pixels | Number | undefined |
type ![]() | the type of the mark | String | |
| visibility | whether the mark is visible (“visible” or “hidden”) | String | “visible” |
