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

tickFormats example in the documentation #244

Open
csebe opened this issue May 2, 2019 · 0 comments
Open

tickFormats example in the documentation #244

csebe opened this issue May 2, 2019 · 0 comments

Comments

@csebe
Copy link

csebe commented May 2, 2019

Hi,
Thanks for your work on this library.
I found a small bug in the documentation:

On this page:
https://epochjs.github.io/epoch/real-time/

in the common option area, one can see this example:

tickFormats: { time: function(d) { return new Date(time*1000).toString(); } }

This is actually incorrect and it should be in fact:

tickFormats: { bottom: function(d) { return new Date(time*1000).toString(); } }

Also, it may be useful to insert an example about how to display nothing as tick's text, ie:

tickFormats: { bottom: function(d) { } }

Thank you.

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

1 participant