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

Time scale tickFormat broken by latest Chrome version? #141

Closed
jheer opened this issue Jun 11, 2018 · 1 comment
Closed

Time scale tickFormat broken by latest Chrome version? #141

jheer opened this issue Jun 11, 2018 · 1 comment

Comments

@jheer
Copy link
Contributor

jheer commented Jun 11, 2018

To replicate:

var s = d3.scaleTime().domain([-7506057600000, -4213184400000]).range([0, 500])
s.ticks().map(s.tickFormat());
// actual: [ ":00", ":00", ":00", ":00", ":00", ":00", ":00", ":00", ":00", ":00" ]
// expect: [ "1740", "1750", "1760", "1770", "1780", "1790", "1800", "1810", "1820", "1830" ]

In previous versions of Chrome, this produced the expected output (which is what Safari and Firefox still produce). It looks like Chrome is arriving at formatSecond rather than formatYear within the time scale tickFormat method...

@mbostock
Copy link
Member

Moved to d3/d3-time#29.

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