Area chart
A line chart with the space under each line filled, for showing volume as well as trend.
| Name | Type | What it does |
|---|---|---|
areaChart(data, options) | component | Same data as lineChart. The y axis starts at zero |
{ 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 |
Filled lines
<script type="module" src="node_modules/glimmer-ui/charts.js"></script>
<gl-chart type="area" data='{"labels":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug"],"series":[{"name":"Visits","values":[120,180,160,240,300,280,360,420]},{"name":"Sign-ups","values":[40,60,90,80,140,170,160,230]}]}'></gl-chart>