We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The offset() function of filtered intervals doesn't seem to work as intended when the given step is negative:
const interval = d3.utcMinute.every(15); const date = new Date("Fri, 14 Jul 2017 12:07:23 GMT"); console.log(interval.offset(date, 1).toUTCString()); // Fri, 14 Jul 2017 12:15:23 GMT (correct) console.log(interval.offset(date, -1).toUTCString()); // Fri, 14 Jul 2017 12:07:23 GMT (incorrect)
(Here's a runnable version on CodePen.)
Looking at the D3 code, the problem is pretty clear:
if (date >= date) while (--step >= 0) while (offseti(date, 1), !test(date)) {}
The text was updated successfully, but these errors were encountered:
c1df3ab
Fixed in 1.0.7. Thanks for the report!
Sorry, something went wrong.
No branches or pull requests
The offset() function of filtered intervals doesn't seem to work as intended when the given step is negative:
(Here's a runnable version on CodePen.)
Looking at the D3 code, the problem is pretty clear:
The text was updated successfully, but these errors were encountered: