Discovering patterns of online popularity from time series