Changed tooltip text format and added time legend