Area chart
native
Filled area under a line
Matrix status native. Verification types · strong. ChartKit option: mark.area.
type:'line' + mark.area:true, or mini-area
Source: chartkit:packages/core/src/generated/schema.ts:819
ChartKit spec
Passed validate() during npm run matrix:refresh. The SVG is the server render.
{
"version": "1",
"type": "line",
"data": [
{
"quarter": "Q1",
"units": 40
},
{
"quarter": "Q2",
"units": 55
}
],
"encoding": {
"x": "quarter",
"y": "units"
},
"a11y": {
"alt": "Units rose in Q2."
},
"size": {
"width": 640,
"height": 260
},
"mark": {
"area": true
}
}Other libraries
Option names are the paths recorded in the matrix. A grep-only cell names the identifier that matched, not a render test. Markdown copy: type.area.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | ChartConfiguration.options.elements.line.fillline dataset with fill:true (Filler plugin) | types · strong | chart.js/dist/types/index.d.ts:1953 |
| Recharts | native | AreaChart, Area | types · strong | recharts/types/chart/AreaChart.d.ts:8 |
| Apache ECharts | native | series.areaStyle | types · strong | echarts/types/dist/shared.d.ts:11100 |
| Highcharts | native | series.type=area | types · strong | highcharts/options/abands.d.ts:1386 |
| Plotly.js | native | trace.fill=tozeroy | types · strong | plot-schema.json#traces.{scatter,scattergl,scatterpolargl}.attributes.fill |
| Nivo | native | Line.enableArea | types · strong | @nivo/line/dist/types/types.d.ts:145 |
| Victory | native | VictoryArea | types · strong | victory-area/lib/victory-area.d.ts:31 |
| visx | native | AreaClosed, AreaSeries | types · strong | @visx/shape/lib/shapes/AreaClosed.d.ts:5 |
| ApexCharts | native | chart.type=area | types · strong | apexcharts/types/apexcharts.d.ts:1767 |
| Tremor (npm) | native | AreaChart | types · strong | @tremor/react/dist/index.d.ts:97 |
| Observable Plot | native | area | types · strong | @observablehq/plot/src/marks/area.d.ts:134 |
| Vega-Lite | native | mark=area | types · strong | vega-lite/build/spec/unit.d.ts:19 |
| AG Charts | native | series.type=area | types · strong | ag-charts-types/dist/types/src/series/cartesian/areaOptions.d.ts:86 |
| amCharts 5 | native | LineSeriesfills.visible on line series | types · strong | @amcharts/amcharts5/.internal/charts/xy/series/LineSeries.d.ts:70 |
| Google Charts | native | AreaChart | types · strong | @types/google.visualization/index.d.ts:912 |
| uPlot | native | Options.series.fill | types · strong | uplot/dist/uPlot.d.ts:935 |
| TradingView Lightweight Charts | native | AreaSeries | types · strong | lightweight-charts/dist/typings.d.ts:5 |
| MUI X Charts | native | LineChart.series.area | types · strong | @mui/x-charts/models/seriesType/line.d.mts:52 |
| Mermaid (chart-ish diagrams only) | unknown | grep: area | conflict · unknown | — |
| AntV G2 | native | MarkTypes=area | types · strong | @antv/g2/lib/spec/mark.d.ts:13 |