0.0.1-alpha.0 • Published 5 years ago
@johnsylvain/histogram v0.0.1-alpha.0
<x-histogram>
Web Component for generating a simple SVG histogram
Usage
yarn add @johnsylvain/histogram
import '@johnsylvain/histogram';
<x-histogram data="[0, 1, 2, 3, 4]"></x-histogram>
Options
Attribute | Options | Default | Description |
---|---|---|---|
data | Array<number> | [] | List of data to display as histogram |
buckets | number | 10 | Number of buckets to make |
height | number | 100 | Height of the histogram |
color | string | #d3d3d3 | Color of the histogram bars |
radius | number | 0 | Corner radius of the buckets |
0.0.1-alpha.0
5 years ago
0.0.1
5 years ago