interval.range() with option to include the stop interval boundary
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- backend
Research direction
Start by reading the interval range implementation and its tests in the d3-time repository to see how the stop boundary is currently handled. Explore how an option that includes the stop boundary could fit the existing range API, including its default behavior. Done means ranges include the stop interval when requested while preserving the current exclusive default, with tests covering both cases.
Written by the indexing model from the issue text.
Description
If you have a begin and an end date and want to loop through every day including the end date with d3.utcDay.range(), my understanding is I would call:
d3.utcDay.range(new Date("2022-03-08"), nextDay(new Date("2022-04-13")))
with
function nextDay(currentDay) {
let nextDay = new Date(currentDay);
nextDay.setDate(currentDay.getDate() + 1);
return nextDay;
}
If interval range would include an option exclusive which defaults to true, but can be set to false, then one could get the desired result easier.
- Dominant language
- JavaScript
- Stars
- 238
- Forks
- 55
- Avg merge
- 6h 15m
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from d3/d3-time
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
interval.every can return intervals of inconsistent lengthPossibly taken @mbostock claimed this 1181 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 1/5 Under an hour Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Similar issues
-
maintenance
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
assistant-ui/assistant-ui#10496 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
ai bug design good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
neomjs/neo-agent-institution#927 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
gramps-project/gramps-web#1671 ·
Maintainers usually reply within 1 day
-
bug good first issue priority: P2 status: ready
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
RhinoLink-Tech/data-fabric#502 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
cline/mcp-marketplace#3708 ·