-
Notifications
You must be signed in to change notification settings - Fork 189
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
rangeInclusive? #90
Comments
I usually do something like |
Closing this issue due to inactivity. Please do not hesitate to add a comment or reopen the issue if you think it is still worth pursuing. PS: I think I like |
We could also introduce a linspace method as in numpy. It functions more like d3.ticks, except it doesn’t attempt to produce human-readable values. https://numpy.org/doc/stable/reference/generated/numpy.linspace.html |
I frequently find myself using d3.range and desiring an inclusive range. I end up writing code like this:
Since this appears rather cryptic, I thought I'd propose this clearer alternative:
This comes up at least once a month in my day to day work, I wonder if this is true for others as well.
Anyone else think this would be a useful addition to
d3-array
?The text was updated successfully, but these errors were encountered: