visionmedia / Histogram
JavaScript canvas histogram component
Stars: ✭ 69
Programming Languages
javascript
184084 projects - #8 most used programming language
histogram
JavaScript histogram component for arbitrary data.
Installation
$ component install visionmedia/histogram
API
Histogram()
Initialize a new histogram.
Histogram.add(data:Array, options:Object)
Add data
set with options
:
-
color
bar color
Histogram.size(w:Number, h:Number)
Set size to w
/ h
.
Histogram.bins(n:Number)
Set the total number of bins to n
.
Histogram.render()
Render the histogram and return a canvas.
License
MIT
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].