Data utilities
Umbrella package
@visx/marker
Markers are graphical objects attached to a <path>
, <line>
, <polyline>
, or <polygon>
element. MDN <marker>
Installation
npm install --save @visx/marker
APIs
#<Marker />
The <marker> contents. Typically one of: <path>
, <line>
, <polyline>
, or <polygon>
Unique id for the <marker>
. Should be unique across all page elements.
# markerHeight
ReactText
The height of the marker viewport
Default 3
# markerUnits
string
Set the coordinate system for the markerWidth, markerHeight, and <marker>
contents
Default userSpaceOnUse
# markerWidth
ReactText
The width of the marker viewport
Default 3
# refX
ReactText
The x coordinate for the reference point of the maker
# refY
ReactText
The y coordinate for the reference point of the maker
# size
number
A number used to determine the size of the bounding box the marker content.
# strokeWidth
number
The stroke width. constrained to a number
type due to use in bounding box calculations