Added chart command.

This also required updating some ``timechart`` and ``stats`` code.