Horizontal bar
native
Bars along the y axis
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.mark.orientation=horizontal.
Source: chartkit:packages/core/src/generated/schema.ts:847
ChartKit spec
Passed validate() during npm run matrix:refresh. The SVG is the server render.
{
"version": "1",
"type": "bar",
"data": [
{
"lane": "A",
"stops": 12
},
{
"lane": "C",
"stops": 15
}
],
"encoding": {
"x": "lane",
"y": "stops"
},
"a11y": {
"alt": "Lane C has more."
},
"size": {
"width": 640,
"height": 260
},
"mark": {
"orientation": "horizontal"
}
}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.bar.horizontal.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | ChartConfiguration.options.indexAxis=y | types · strong | chart.js/dist/types/index.d.ts:1609 |
| Recharts | native | BarChart.layout=verticallayout="vertical" + swapped axes | types · strong | recharts/types/util/types.d.ts:1367 |
| Apache ECharts | native | yAxis.type=categoryswap axis types | types · strong | echarts/types/dist/shared.d.ts:2729 |
| Highcharts | native | series.type=bar | types · strong | highcharts/options/abands.d.ts:1386 |
| Plotly.js | native | trace.orientation=h | types · strong | plot-schema.json#traces.{bar,box,funnel,histogram,sankey,scatter,…}.attributes.orientation |
| Nivo | native | Bar.layout=horizontal | types · strong | @nivo/bar/dist/types/types.d.ts:168 |
| Victory | native | VictoryBar.horizontal | types · strong | victory-core/lib/victory-util/common-props.d.ts:28 |
| visx | native | BarGroupHorizontal, BarStackHorizontal | types · strong | @visx/shape/lib/shapes/BarGroupHorizontal.d.ts:20 |
| ApexCharts | native | plotOptions.bar.horizontal | types · strong | apexcharts/types/apexcharts.d.ts:3099 |
| Tremor (npm) | native | BarChart.layoutlayout="vertical" | types · strong | @tremor/react/dist/index.d.ts:100 |
| Observable Plot | native | barX | types · strong | @observablehq/plot/src/marks/bar.d.ts:162 |
| Vega-Lite | native | mark=barput the quantitative field on x | types · strong | vega-lite/build/spec/unit.d.ts:19 |
| AG Charts | native | series.direction=horizontal | types · strong | ag-charts-types/dist/types/src/series/cartesian/barOptions.d.ts:60 |
| amCharts 5 | native | ColumnSeriescategory axis on y | types · strong | @amcharts/amcharts5/.internal/charts/xy/series/ColumnSeries.d.ts:33 |
| Google Charts | native | BarChart | types · strong | @types/google.visualization/index.d.ts:858 |
| uPlot | partial | grep: barsbars({ ori: 1 }) with rotated scales | grep · weak | 788: bars? |
| TradingView Lightweight Charts | unknown | — | conflict · unknown | — |
| MUI X Charts | native | BarChart.layout=horizontal | types · strong | @mui/x-charts/BarChart/BarChart.d.mts:54 |
| Mermaid (chart-ish diagrams only) | native | MermaidConfig.xyChart.chartOrientation=horizontal | types · strong | mermaid/dist/config.type.d.ts:1085 |
| AntV G2 | native | grep: transposecoordinate.transform transpose | grep · weak | @antv/g2/lib/index.d.ts:54 |