Features · type

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.

Both rose.Both rose.ordersrate0102030400.40.450.50.55W1W2Rate
{
  "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.

LibraryStatusOptionVerificationSource
Chart.jsnativeChartConfiguration.data.datasets.typeper-dataset typetypes · strongchart.js/dist/types/index.d.ts:3824
RechartsnativeComposedCharttypes · strongrecharts/types/chart/ComposedChart.d.ts:8
Apache EChartsnativeseries.type=barmix series types freelytypes · strongecharts/types/dist/shared.d.ts:11176
Highchartsnativeseries.type=linemix series types freelytypes · stronghighcharts/options/abands.d.ts:1386
Plotly.jsnativetrace.type=barmix trace typestypes · strongplot-schema.json#traces.bar
NivopartialBar.layerscustom layer for linetypes · strong@nivo/bar/dist/types/types.d.ts:187
VictorynativeVictoryChartcompose childrentypes · strongvictory-chart/lib/victory-chart.d.ts:3
visxnativeXYChartcompose seriestypes · strong@visx/xychart/lib/components/XYChart.d.ts:46
ApexChartsnativeseries.typeper-series typetypes · strongapexcharts/types/apexcharts.d.ts:2544
Tremor (npm)none—one mark type per chartabsence · absence—
Observable Plotnativemarkslayer marks freelytypes · strong@observablehq/plot/src/mark.d.ts:496
Vega-Litenativegrep: layergrep · weak579: "description"
AG Chartsnativeseries.type=linemix series in one cartesian charttypes · strongag-charts-types/dist/types/src/series/cartesian/areaOptions.d.ts:86
amCharts 5nativeLineSeries, ColumnSeriesmix seriestypes · strong@amcharts/amcharts5/.internal/charts/xy/series/LineSeries.d.ts:70
Google ChartsnativeComboCharttypes · strong@types/google.visualization/index.d.ts:1299
uPlotpartialgrep: barsper-series pathsgrep · weak788: bars?
TradingView Lightweight ChartspartialHistogramSeriesadd different series types to one charttypes · stronglightweight-charts/dist/typings.d.ts:9
MUI X ChartsnativeBarChartcompose BarPlot + LinePlot in ChartsContainertypes · strong@mui/x-charts/BarChart/BarChart.d.mts:72
Mermaid (chart-ish diagrams only)nativeMermaidConfig.xyChartxychart-beta allows bar + linetypes · strongmermaid/dist/config.type.d.ts:225
AntV G2nativegrep: childrenview with child marksgrep · weak@antv/g2/lib/composition/view.d.ts:5