Features · format

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.

Units rose in Q2.Units rose in Q2.40455055Q1Q2
{
  "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.

LibraryStatusOptionVerificationSource
Chart.jsnativegrep: localeoptions.localegrep · weakchart.js/dist/types/index.d.ts:1669
RechartsmanualCustomizedmechanism · weakrecharts/types/component/Customized.d.ts:26
Apache EChartsnativegrep: localeinit(el, theme, {locale}) + registerLocalegrep · weakecharts/types/src/core/locale.d.ts:3
Highchartsnativelangtypes · stronghighcharts/highcharts.d.ts:93572
Plotly.jsnativeconfig.locale, layout.separatorstypes · strongplot-schema.json#config.locale
NivomanualLine.layersmechanism · weak@nivo/line/dist/types/types.d.ts:171
VictorymanualVictoryBarProps.dataComponentmechanism · weakvictory-core/lib/victory-util/common-props.d.ts:9
visxmanualGroupmechanism · weak@visx/group/lib/Group.d.ts:15
ApexChartsnativechart.locales, chart.defaultLocaletypes · strongapexcharts/types/apexcharts.d.ts:2120
Tremor (npm)unknown—unverified · unknown—
Observable Plotnativegrep: localenumbers and dates use localegrep · weak@observablehq/plot/src/format.d.ts:3
Vega-Liteplugin—formatLocale / timeFormatLocalenpm · weak—
AG Chartsnativegrep: localeag-charts-locale packagegrep · weakag-charts-community/dist/types/src/module-support.d.ts:197
amCharts 5nativegrep: localeam5localesgrep · weak@amcharts/amcharts5/.internal/plugins/json/ChartSerializer.d.ts:12
Google Chartsnativegrep: languagegoogle.charts.load({language})grep · weak@types/google.visualization/index.d.ts:21
uPlotmanualOptions.hooksmechanism · weakuplot/dist/uPlot.d.ts:394
TradingView Lightweight Chartsnativegrep: localelocalization.localegrep · weak3335: * Represents options for formatting dates, times, and prices according to a locale.
MUI X ChartsnativeChartsLocalizationProvidertypes · strong@mui/x-charts/ChartsLocalizationProvider/ChartsLocalizationProvider.d.mts:23
Mermaid (chart-ish diagrams only)none—absence · absence—
AntV G2unknowngrep: localeunverified · unknown—