Skip to content

charton API


charton API / @chart-on/core / index / localization

Function: localization() ​

localization(): ChartPlugin

Defined in: packages/core/src/builtins.ts:442

Plugin that applies the localization option (createLocalizer): numbers, dates and built-in text in a locale through Intl, a decimal separator, digit grouping, an hour cycle, a date format and your own messages or translate. Without it the chart keeps the built-in English (englishLocalizer), and the option is only checked.

Returns ​

ChartPlugin