Comments (2)
I think the answer here is “don’t do that”. I don’t see what we could do differently since interval.range is built on interval.offset, and if interval.offset hangs because the filter never returns true, there’s no way to avoid the infinite loop. Also practically speaking, fixing this doesn’t seem urgent since people can write their custom intervals accordingly to avoid the infinite loop (and custom intervals aren’t very common).
from d3-time.
yup, I was looking at the code and realized there's no easy way to prevent that from happening; you find it soon enough when you make the mistake ;-)
from d3-time.
Related Issues (20)
- Filtered intervals' offset() function doesn't work correctly when step is negative HOT 1
- interval.range should protect against infinite loops. HOT 9
- bug where the same dates are not recognised as the same as each other (==), but are also not recognised as either less then or more then the other! HOT 2
- Visualizing date based on Hijri date series HOT 2
- timeMinute, timeHour are sometimes wrong (Chrome 67). HOT 10
- Tick format for dates before 1900-01-01 rendered as ":00" HOT 1
- interval.range function fails for Day interval when crossing daylight savings time in Brazilian time zone. HOT 1
- d3.timeMonth.offset() returns not the best thing for final days of the month HOT 1
- Hope to add timeQuarter HOT 3
- rangeInclusive HOT 4
- range in descending order? HOT 2
- Week starts on Monday HOT 1
- Half years for time axis HOT 2
- interval.every and interval.range generate different result with the same step
- interval.range() with option to include the stop interval boundary HOT 2
- Request: export `ticker` HOT 1
- Equivalent of d3.unixDay for local time HOT 1
- interval.every can return intervals of inconsistent length HOT 1
- Incomplete TS type def for `timeTicks`? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from d3-time.