Chart primitives
Layouts & specialized
Interactions
Data utilities
Umbrella package
@vx/annotation
Status
We recommend using react-annotation by @susielu. This package is a work in progress. In the future we may make some helpers built on top of react-annotation.
Installation
npm install --save @vx/annotation
Components
APIs
#<LinePathAnnotation />
Add a class name to the line path.
The text for your label.
The label's textAnchor.
Default middle
The x-coordinate shift to the label.
Default 0
The y-coordinate shift to the label
Default 0
The color of label. Defaults to props.stroke.
The font size of the label text.
Default 10
The label's SVG paint-order.
Default stroke
The color of the label.
Default white
The stroke width of the label text.
Default 3
A left pixel offset applied to the entire bar group.
Default 0
An array of points describing the line path.
Default []
The color of the line.
Default black
The pixel width of the line.
Default 1
A top pixel offset applied to the entire bar group.
Default 0