reformat history to comply with nvd3