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

Example: How to override time units label formatter #596

Open
RichardLitt opened this issue Aug 31, 2017 · 0 comments
Open

Example: How to override time units label formatter #596

RichardLitt opened this issue Aug 31, 2017 · 0 comments

Comments

@RichardLitt
Copy link
Contributor

In Rickshaw.Features.Time.js, we have different units.

{
	name: 'second',
	seconds: 1,
	formatter: function(d) { return d.getUTCSeconds() + 's' }
}

It would be great if we could have an example explaining how to override the formatter for i18n. Right now, m, s, and ms are all hardcoded - but these will change for other languages.

Related to #115 and #485.

@RichardLitt RichardLitt changed the title Tutorial: How to override time units label formatter Example: How to override time units label formatter Aug 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant