Added support for tooltips.

Automatically format based on whether or not X is a time axis.