This post describes a way to associate a pretty graph with every date as follows: A date is represented by three integers (month, day, year) which are used as input into an equation to get a series of points which are then summed to get another series of points and finally connected by line segments to get the graph.

As an exercise, I implemented a web app that draws these graphs. It initially draws the graph that cooresponds to today’s date. Forward and back buttons let you view the graphs for other dates.

The web app is written in Haskell, and compiled to Javascript using the ghcjs compiler. The reflex library is used for event handling and display.