Features · format

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.

الوحداتUnits rose in Q2, laid out right to left.الوحدات40455055Q2Q1
{
  "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.

LibraryStatusOptionVerificationSource
Chart.jsnativegrep: rtlgrep · weakchart.js/dist/types/index.d.ts:2500
Rechartsnativegrep: directiongrep · weakrecharts/types/index.d.ts:137
Apache EChartsunknown—conflict · unknown—
Highchartsnativegrep: rtlgrep · weakhighcharts/highcharts.src.d.ts:288
Plotly.jsnone—absence · absence—
Nivounknown—conflict · unknown—
Victoryunknown—conflict · unknown—
visxnone—absence · absence—
ApexChartsnone—absence · absence—
Tremor (npm)unknown—conflict · unknown—
Observable Plotnone—absence · absence—
Vega-Liteunknown—conflict · unknown—
AG Chartsunknown—conflict · unknown—
amCharts 5nativegrep: rtlgrep · weak@amcharts/amcharts5/examples/xy-stacked-and-clustered-column/config.json:69
Google Chartsunknown—conflict · unknown—
uPlotnone—absence · absence—
TradingView Lightweight Chartsunknown—conflict · unknown—
MUI X Chartsnativegrep: rtlMUI theme directiongrep · weak@mui/x-charts/locales/svSE.d.ts:68
Mermaid (chart-ish diagrams only)unknown—conflict · unknown—
AntV G2none—absence · absence—