add histogram and time series