This demonstrates using an interval tree to plot items which span from a begin date to an end date. The brush will intersect with any items whose intervals overlap with it.
It uses the interval-tree-1d library by Mikola Lysenko.