Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to specify time scale locale #3108

Closed
cghislai opened this issue Aug 7, 2016 · 2 comments
Closed

Allow to specify time scale locale #3108

cghislai opened this issue Aug 7, 2016 · 2 comments

Comments

@cghislai
Copy link

cghislai commented Aug 7, 2016

Currently, the time scale uses the default moment locale.
Calling moment.locale(locale) does not seems to help.
There should be a way to specify the locale in the time scale settings, or at the chart options level.

@etimberg
Copy link
Member

etimberg commented Aug 7, 2016

@cghislai setting the moment global locale should work if done before the chart is drawn. If the chart is already drawn, update() needs to be called

@cghislai
Copy link
Author

Yep, sorry, used a wrong locale object :/ moment could have told me it was incorrect..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants