Scatter plot
Points on two numeric axes, for seeing how two measurements relate.
| Name | Type | What it does |
|---|---|---|
scatterChart(data, options) | component | data: { series: [{ name, points: [[x, y], …] }] } |
{ radius } | modifier | Option: point size (default 4) |
{ 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 |
Two groups
<script type="module" src="node_modules/glimmer-ui/charts.js"></script>
<gl-chart type="scatter" data='{"series":[{"name":"Control","points":[[28,41],[33,52],[36,38],[39,57],[41,46],[44,61],[46,49],[49,55],[52,44],[55,63]]},{"name":"Variant","points":[[51,62],[55,71],[58,66],[60,79],[63,70],[65,84],[68,73],[70,88],[73,77],[76,91]]}]}'></gl-chart>