Locale-aware formatting (i18n)
native
Decimal/thousand separators, month names per locale
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.locale.
BCP 47 via Intl
Source: chartkit:packages/core/src/generated/schema.ts:77
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."
},
"size": {
"width": 640,
"height": 260
},
"locale": "en-US"
}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.locale.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | grep: localeoptions.locale | grep · weak | chart.js/dist/types/index.d.ts:1669 |
| Recharts | manual | Customized | mechanism · weak | recharts/types/component/Customized.d.ts:26 |
| Apache ECharts | native | grep: localeinit(el, theme, {locale}) + registerLocale | grep · weak | echarts/types/src/core/locale.d.ts:3 |
| Highcharts | native | lang | types · strong | highcharts/highcharts.d.ts:93572 |
| Plotly.js | native | config.locale, layout.separators | types · strong | plot-schema.json#config.locale |
| Nivo | manual | Line.layers | mechanism · weak | @nivo/line/dist/types/types.d.ts:171 |
| Victory | manual | VictoryBarProps.dataComponent | mechanism · weak | victory-core/lib/victory-util/common-props.d.ts:9 |
| visx | manual | Group | mechanism · weak | @visx/group/lib/Group.d.ts:15 |
| ApexCharts | native | chart.locales, chart.defaultLocale | types · strong | apexcharts/types/apexcharts.d.ts:2120 |
| Tremor (npm) | unknown | — | unverified · unknown | — |
| Observable Plot | native | grep: localenumbers and dates use locale | grep · weak | @observablehq/plot/src/format.d.ts:3 |
| Vega-Lite | plugin | —formatLocale / timeFormatLocale | npm · weak | — |
| AG Charts | native | grep: localeag-charts-locale package | grep · weak | ag-charts-community/dist/types/src/module-support.d.ts:197 |
| amCharts 5 | native | grep: localeam5locales | grep · weak | @amcharts/amcharts5/.internal/plugins/json/ChartSerializer.d.ts:12 |
| Google Charts | native | grep: languagegoogle.charts.load({language}) | grep · weak | @types/google.visualization/index.d.ts:21 |
| uPlot | manual | Options.hooks | mechanism · weak | uplot/dist/uPlot.d.ts:394 |
| TradingView Lightweight Charts | native | grep: localelocalization.locale | grep · weak | 3335: * Represents options for formatting dates, times, and prices according to a locale. |
| MUI X Charts | native | ChartsLocalizationProvider | types · strong | @mui/x-charts/ChartsLocalizationProvider/ChartsLocalizationProvider.d.mts:23 |
| Mermaid (chart-ish diagrams only) | none | — | absence · absence | — |
| AntV G2 | unknown | grep: locale | unverified · unknown | — |