Composed dashboards / concatenation
native
Multiple views in one spec
Matrix status native. Verification runtime · strong. ChartKit option: layout.concat.
layout.concat.views is a list of chart specs stacked vertically, placed in a row, or wrapped with columns. A view may set span to cover more than one column. An empty list warns CK3044. A view with no type warns CK3045. Facet and concat together warn CK3048.
Source: packages/core/src/layout.ts
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 while cost fell."
},
"size": {
"width": 640,
"height": 260
},
"layout": {
"concat": {
"direction": "vertical",
"views": [
{
"version": "1",
"type": "bar",
"title": "Units",
"data": [
{
"quarter": "Q1",
"units": 40
},
{
"quarter": "Q2",
"units": 55
}
],
"encoding": {
"x": "quarter",
"y": "units"
},
"a11y": {
"alt": "Units rose in Q2."
}
},
{
"version": "1",
"type": "line",
"title": "Cost",
"data": [
{
"quarter": "Q1",
"cost": 18
},
{
"quarter": "Q2",
"cost": 14
}
],
"encoding": {
"x": "quarter",
"y": "cost"
},
"a11y": {
"alt": "Cost fell in Q2."
}
}
]
}
}
}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: layout.concat.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | none | — | absence · absence | — |
| Recharts | none | — | absence · absence | — |
| Apache ECharts | native | gridmultiple coordinate systems in one option | types · strong | echarts/types/dist/shared.d.ts:12570 |
| Highcharts | none | — | absence · absence | — |
| Plotly.js | native | layout.grid | types · strong | plot-schema.json#layout.layoutAttributes.grid |
| Nivo | none | — | absence · absence | — |
| Victory | unknown | — | conflict · unknown | — |
| visx | none | — | absence · absence | — |
| ApexCharts | none | — | absence · absence | — |
| Tremor (npm) | none | — | absence · absence | — |
| Observable Plot | none | — | absence · absence | — |
| Vega-Lite | native | grep: hconcat | grep · weak | 5232: "description" |
| AG Charts | unknown | — | conflict · unknown | — |
| amCharts 5 | none | — | absence · absence | — |
| Google Charts | native | Dashboard | types · strong | @types/google.visualization/index.d.ts:1352 |
| uPlot | none | — | absence · absence | — |
| TradingView Lightweight Charts | native | IChartApi.panes | types · strong | lightweight-charts/dist/typings.d.ts:1779 |
| MUI X Charts | none | — | absence · absence | — |
| Mermaid (chart-ish diagrams only) | none | — | absence · absence | — |
| AntV G2 | native | grep: spaceFlex | grep · weak | @antv/g2/lib/index.d.ts:159 |