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

propertyexplanationtypedefault value
bounds the bounding rectangle of the markRectangle
dataScopethe data scope of the markDataScopeundefined
fillColorthe fill color of the markColorundefined
id the unique id of the markString
opacitythe opacity of the mark (between 0 and 1)Number1
strokeColorthe stroke color of the markColorundefined
strokeDashthe dashes and gaps for the mark strokeStringundefined
strokeWidththe stroke width of the mark in pixelsNumberundefined
type the type of the markString
visibilitywhether the mark is visible (“visible” or “hidden”)String“visible”