Skip to content

Use options.locale property as default for the date adapters #7859

@stockiNail

Description

@stockiNail

Feature Proposal

The locale property has been implemented for V3 in order to use it for number formatting on scale.
Nevertheless the locale can be used for dates as well, and then it could set to datefns and luxon date adapters.
I would suggest to use the locale property set at chart (or defaults) options level, as default for the date adapter (if not set on the adapter options).

Feature Use Case

With this feature, a developer can set the locale only once (in chart.options.locale or defaults.locale) instead of replicate it in several options.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions