Right-to-left support
native
RTL text and layout
Matrix status native. Verification runtime · strong. ChartKit option: layout.direction.
layout.direction rtl sets dir=rtl, mirrors every categorical bar, keeps every category label, moves the y axis to the right with a rotated title, and centres the x title.
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 in Q2, laid out right to left."
},
"size": {
"width": 640,
"height": 260
},
"title": "الوحدات",
"layout": {
"direction": "rtl"
}
}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: format.rtl.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | grep: rtl | grep · weak | chart.js/dist/types/index.d.ts:2500 |
| Recharts | native | grep: direction | grep · weak | recharts/types/index.d.ts:137 |
| Apache ECharts | unknown | — | conflict · unknown | — |
| Highcharts | native | grep: rtl | grep · weak | highcharts/highcharts.src.d.ts:288 |
| Plotly.js | none | — | absence · absence | — |
| Nivo | unknown | — | conflict · unknown | — |
| Victory | unknown | — | conflict · unknown | — |
| visx | none | — | absence · absence | — |
| ApexCharts | none | — | absence · absence | — |
| Tremor (npm) | unknown | — | conflict · unknown | — |
| Observable Plot | none | — | absence · absence | — |
| Vega-Lite | unknown | — | conflict · unknown | — |
| AG Charts | unknown | — | conflict · unknown | — |
| amCharts 5 | native | grep: rtl | grep · weak | @amcharts/amcharts5/examples/xy-stacked-and-clustered-column/config.json:69 |
| Google Charts | unknown | — | conflict · unknown | — |
| uPlot | none | — | absence · absence | — |
| TradingView Lightweight Charts | unknown | — | conflict · unknown | — |
| MUI X Charts | native | grep: rtlMUI theme direction | grep · weak | @mui/x-charts/locales/svSE.d.ts:68 |
| Mermaid (chart-ish diagrams only) | unknown | — | conflict · unknown | — |
| AntV G2 | none | — | absence · absence | — |