revised heatmap converter for time series