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

Better ticks. #44

Closed
mbostock opened this issue Feb 7, 2011 · 2 comments
Closed

Better ticks. #44

mbostock opened this issue Feb 7, 2011 · 2 comments

Comments

@mbostock
Copy link
Member

mbostock commented Feb 7, 2011

We need date ticks, at a minimum. But, it would also be nice to have a ticks algorithm that considers text metrics, so that we can avoid placing overlapping labels.

@macduy
Copy link

macduy commented Jun 9, 2011

Hi, I am particularly interested in date ticks. I was wondering, has there been any development on this? Right now, if I define a linear scale with date objects in the domain, I get the following not-so-nice ticks:

new Date(ticks[1])
Wed Jun 08 2011 22:53:20 GMT+0100 (GMT Daylight Time)
new Date(ticks[2])
Thu Jun 09 2011 01:40:00 GMT+0100 (GMT Daylight Time)
new Date(ticks[3])
Thu Jun 09 2011 04:26:40 GMT+0100 (GMT Daylight Time)
new Date(ticks[4])
Thu Jun 09 2011 07:13:20 GMT+0100 (GMT Daylight Time)
new Date(ticks[5])
Thu Jun 09 2011 10:00:00 GMT+0100 (GMT Daylight Time)

@mbostock
Copy link
Member Author

Added date ticks in 1.28.0. See d3.time.scale.

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

No branches or pull requests

2 participants