Description
react-annotation is a set of React components for annotating SVG elements, such as points on a chart. It comes with built-in annotation types, and you can extend it to make custom annotations. The full documentation is on the project's website, react-annotation.susielu.com. For setup, the README says to add react-annotation as a node module with npm, and it suggests create-react-app if you are new to React. To work on the library itself, you clone the repository and use yarn. Running the start command watches for changes and builds the docs site. The README also describes a production build of the docs, and a build of just the components with a bundle that can be imported into CodePen. The author invites feedback about additional features on Twitter. The README has a long prior art list, with links to work on annotation in d3 plugins, a d3-annotate scatterplot example, the Rickshaw annotation tool, and articles on how other chart tools handle annotation. The library suits developers who build charts or diagrams in React and want labels and callouts tied to SVG elements.…
Highlights
- React components for annotating SVG
- Built-in annotation types
- Extend with custom annotations
- Full documentation website
- Install from npm
Ratings & Reviews
No ratings yet
Be the first to rate react-annotation.
People also visit

react-rough-notation
This is a React wrapper for [RoughNotation](https://roughnotation.com/)
react-annotation FAQ
What is react-annotation?
A set of React components for annotating SVG elements, such as chart points.
Can I make my own annotation types?
Yes. The README says you can use the built-in types or extend the library to make custom annotations.
How do I install it?
Add it as a node module with npm, as the README shows.
Where is the documentation?
On react-annotation.susielu.com.
How do I run the docs locally?
Clone the repo, use yarn, and run the start command, which watches for changes and builds the docs site.
What are the best react-annotation alternatives?
Popular alternatives to react-annotation include react-rough-notation, @nivo/annotations and @ridemountainpig/svgl-react. See all react-annotation alternatives

















