Visualization of calendar events. Algorithm to layout events with maximum width
Think of an unlimited grid with just a left edge. Each event is one cell wide, and the height and vertical position is fixed based on starting and ending times. Try to place each event in a column as far left as possible, without it intersecting any earlier event in that column. Then, when each … Read more