A React version of an excellent peity library for beautiful mini <svg>
graphs.
Since peity
is heavily dependent on jQuery, for 2016, a React version was badly needed.
See the examples at peity page.
Currently supports Line
and Bar
widgets.
npm install react-peity
import { Line } from 'react-peity';
<Line values={ [5, 7, 12, 20] } height="16" min="0" max="100" />
delimiter: "," # You can use string as values as well
fill: "#c6d9fd"
height: 16
min: 0
max: -Infinity
stroke: "#4d89f9"
strokeWidth: 1
width: 32
delimiter: ","
fill: ["#4D89F9"] # Use several fills, they will be cycled
height: 16
min: 0
max: -Infinity
padding: 0.1
width: 32