Box plot
Summarises each group by its median, quartiles and range, with outliers shown as dots.
| Name | Type | What it does |
|---|---|---|
boxPlot(data, options) | component | data: { groups: [{ name, values }] }. Whiskers reach 1.5 × the interquartile range |
boxStats(values) | component | The numbers behind one box: q1, median, q3, low, high and outliers |
{ 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 |
Four groups
<script type="module" src="node_modules/glimmer-ui/charts.js"></script>
<gl-chart type="box" data='{"groups":[{"name":"Tokyo","values":[48,52,55,58,60,61,63,64,66,69,72,98]},{"name":"Osaka","values":[31,40,44,49,52,55,57,60,63,68,75]},{"name":"Kyoto","values":[41,62,65,67,69,70,71,72,74,76,79,85]},{"name":"Nara","values":[32,38,42,45,47,49,51,54,58,63,70]}]}'></gl-chart>