Skip to content

Use react-annotation with built-in annotation types, or extend it to make custom annotations. It is made for annotations in SVG.

License

Notifications You must be signed in to change notification settings

jwugit/react-annotation

 
 

Repository files navigation

react-annotation

Full documentation: http://react-annotation.susielu.com

composable-annotation

Setup

Using NPM

You can add react-annotation as a node module by running

npm i react-annotation -S

If you're new to using React, I suggest using create-react-app to start your project

Local Setup and Build

This project uses yarn, make sure that is set up prior to installing and building. To test out the library and run the docs locally, clone the repo and then run:

yarn install

Then run the start command to have a process watch for changes and build the docs site:

yarn start

If you want to make a production build of the docs run:

yarn build
//this includes the yarn run prebuild command below

If you want to make a production build of just the components and the bundle.js that can be used as a codepen import run:

yarn prebuild

Feedback

I would love to hear from you about any additional features that would be useful, please say hi on twitter @DataToViz.

Prior art

About

Use react-annotation with built-in annotation types, or extend it to make custom annotations. It is made for annotations in SVG.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 96.2%
  • CSS 3.1%
  • HTML 0.7%