Format tooltip data according to ticks

Format the data in the tooltip using the ticks formatter.