Back to Plotting
histogram
Histogram of values.
Syntax
histogram(values, bins) → Renders a histogram
Backends
TypeScript
Description
Histogram of values.
Parameters
| Name | Description |
|---|---|
| values | Data values |
| bins | Number of bins (optional) |
Returns
Renders a histogram
Examples
Try It
>> histogram(randn(1000), 30)