@johnsylvain/histogram

0.0.1-alpha.0 • Public • Published

<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

Package Sidebar

Install

npm i @johnsylvain/histogram

Weekly Downloads

1

Version

0.0.1-alpha.0

License

ISC

Unpacked Size

4.56 kB

Total Files

3

Last publish

Collaborators

  • johnsylvain