Simple SVG box plots in React.
yarn add react-boxplotnpm install --save react-boxplot
import React Component from 'react'import Boxplot computeBoxplotStats from 'react-boxplot'const values =14151616171717171718181818181819191920202020202021212223242429const Example =<Boxplot==="horizontal"===/>
Or you can compute the stats yourself:
const Example =<Boxplot==="horizontal"===/>
- Pure SVG.
- Horizonal or vertical orientation.
- The scale of the major axis matches the original data.
In one terminal, start the build for the library:
And, in a second terminal, start the build for the example app:
cd examplenpmnpm start
Pull requests welcome!
This library was developed by Paul Melnikow while working at Body Labs. This is a fork of the original repo, now abandoned, being maintained by its original author.
The project is licensed under the two-clause BSD license.