Add basic zoom functionality.

A user can drag a rectangle around data points in the chart to zoom into
the selected area. The zoom level can be reset by pressing ESC.