Skip to content

Interval Visualizer

  • The core functions, which every industry uses.

Two ranges of time can be overlapping, disjoint, one containing the other, identical, or touching. The four interval operations answer different questions about that relationship, and the answers are easier to see than to read.

Drag either interval’s endpoints, or type them, and every operation recomputes on the same timeline scale.

1. Place two intervals

A
B
Intersection
Union
Difference (A − B)
Symmetric difference (XOR)
Jan 2024JulDec

2. Compare the four operations

Intersection

 

Union

 

Difference (A − B)

 

Symmetric difference (XOR)

 

Worth trying: switch the preset to Disjoint. The intersection returns an empty result, which is the correct answer and not an error — this widget renders that case differently from invalid input on purpose, because the library returns the same empty value for both.

Reference: intervalIntersectionZoned, intervalUnionZoned, intervalDifferenceZoned and intervalXorZoned.