Histogram
How a set of values is distributed, counted into round-numbered bins.
| Name | Type | What it does |
|---|---|---|
histogram(data, options) | component | data: { values }. Bin edges are chosen for you at round numbers |
{ bins } | modifier | Option: roughly how many bins to aim for |
{ width, height } | modifier | Option: the drawing's proportions. It always scales to the width of its container |
{ label } | modifier | Option: a description read out by screen readers |
Distribution of heights
<script type="module" src="node_modules/glimmer-ui/charts.js"></script>
<gl-chart type="histogram" data='{"values":[152,155,158,159,161,162,163,164,165,165,166,167,167,168,168,169,169,170,170,170,171,171,172,172,173,174,174,175,176,177,178,179,181,183,186,190]}'></gl-chart>