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 and B overlap in the middle, each extends past the other.

2. Compare the four operations

Intersection
intervalIntersectionZoned("", "", "", "")
Union
intervalUnionZoned("", "", "", "")
Difference (A − B)
intervalDifferenceZoned("", "", "", "")
Symmetric difference (XOR)
intervalXorZoned("", "", "", "")

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.

Accessibility
© 2026 NorthGuild · Licences

Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.