Combined bar + line
native
Mixed mark types sharing an x axis
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.type=combo.
Source: chartkit:packages/core/src/generated/schema.ts:24
ChartKit spec
Passed validate() during npm run matrix:refresh. The SVG is the server render.
{
"version": "1",
"type": "combo",
"data": [
{
"week": "W1",
"orders": 30,
"rate": 0.4
},
{
"week": "W2",
"orders": 36,
"rate": 0.55
}
],
"encoding": {
"x": "week",
"y": [
{
"field": "orders",
"mark": "bar"
},
{
"field": "rate",
"mark": "line",
"axis": "y2"
}
]
},
"axes": {
"y2": {
"title": "Rate"
}
},
"a11y": {
"alt": "Both rose."
},
"size": {
"width": 640,
"height": 260
}
}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.combo.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | ChartConfiguration.data.datasets.typeper-dataset type | types · strong | chart.js/dist/types/index.d.ts:3824 |
| Recharts | native | ComposedChart | types · strong | recharts/types/chart/ComposedChart.d.ts:8 |
| Apache ECharts | native | series.type=barmix series types freely | types · strong | echarts/types/dist/shared.d.ts:11176 |
| Highcharts | native | series.type=linemix series types freely | types · strong | highcharts/options/abands.d.ts:1386 |
| Plotly.js | native | trace.type=barmix trace types | types · strong | plot-schema.json#traces.bar |
| Nivo | partial | Bar.layerscustom layer for line | types · strong | @nivo/bar/dist/types/types.d.ts:187 |
| Victory | native | VictoryChartcompose children | types · strong | victory-chart/lib/victory-chart.d.ts:3 |
| visx | native | XYChartcompose series | types · strong | @visx/xychart/lib/components/XYChart.d.ts:46 |
| ApexCharts | native | series.typeper-series type | types · strong | apexcharts/types/apexcharts.d.ts:2544 |
| Tremor (npm) | none | —one mark type per chart | absence · absence | — |
| Observable Plot | native | markslayer marks freely | types · strong | @observablehq/plot/src/mark.d.ts:496 |
| Vega-Lite | native | grep: layer | grep · weak | 579: "description" |
| AG Charts | native | series.type=linemix series in one cartesian chart | types · strong | ag-charts-types/dist/types/src/series/cartesian/areaOptions.d.ts:86 |
| amCharts 5 | native | LineSeries, ColumnSeriesmix series | types · strong | @amcharts/amcharts5/.internal/charts/xy/series/LineSeries.d.ts:70 |
| Google Charts | native | ComboChart | types · strong | @types/google.visualization/index.d.ts:1299 |
| uPlot | partial | grep: barsper-series paths | grep · weak | 788: bars? |
| TradingView Lightweight Charts | partial | HistogramSeriesadd different series types to one chart | types · strong | lightweight-charts/dist/typings.d.ts:9 |
| MUI X Charts | native | BarChartcompose BarPlot + LinePlot in ChartsContainer | types · strong | @mui/x-charts/BarChart/BarChart.d.mts:72 |
| Mermaid (chart-ish diagrams only) | native | MermaidConfig.xyChartxychart-beta allows bar + line | types · strong | mermaid/dist/config.type.d.ts:225 |
| AntV G2 | native | grep: childrenview with child marks | grep · weak | @antv/g2/lib/composition/view.d.ts:5 |