Dygraphs options provide 'rollPeriod' to support rolling averages and 'stepPlot' to support step plots. When set together when some data is missing in between, they give very unexpected results. For example, attached image link shows graph for original data (rollPeriod=1) and rollPeriod=5. (<http://imgur.com/a/9ajh8>) 

At 40,000 for example, the rolling average must be zero. But, dygraphs takes average of last 5 *datapoints* instead of last 5 *seconds*.

Is it possible to get rolling average that maintains notion of time rather than data points. Thanks in advance !

PS- Sorry for image link. SO won't allow me to directly post images due to lack of reputation. :(