superset icon indicating copy to clipboard operation
superset copied to clipboard

Option for Timeseries Null days to be shown

Open alanmcruickshank opened this issue 10 years ago • 7 comments

New Feature Request:

For timeseries plots, at the moment if there is a day with no data, the day is skipped and the day isn't shown at all. I'd love an option where these days could be shown even though they're blank, so that there would be an intentional gap.

Something similar to the "Show Missing Values" option available in packages like Tableau: https://onlinehelp.tableau.com/current/pro/online/mac/en-us/missing_values.html

alanmcruickshank avatar May 18 '16 18:05 alanmcruickshank

Any updates on these feature request? It is really annoying, especially for datasets with low-frequency data.

LAlbertalli avatar Feb 28 '17 20:02 LAlbertalli

@LAlbertalli This is currently possible through using the advanced options section and re-sampling using the re-sample rule which corresponds to the relevant time grain.

The UX is a bit rough because if you change the time grain you also have to change the resample rule. What would be excellent is a way of tying a resample rule to a time grain so they both change together - perhaps as an inbuilt function within certain visualisations.

alanmcruickshank avatar Mar 31 '17 13:03 alanmcruickshank

There could be some auto-resampling based on Grain, but it would require tighter semantics around the way Grains are defined. Currently Grains are defined by database dialects and they're pretty loose list of names and SQL expressions. I guess we'd only have to add a 3rd configuration element as a Pandas freq expression (7D, 12H, ...).

I think it'd be pretty trivial actually. If that pandas freq is defined for that grain, we'd call the pandas resampling function automatically.

mistercrunch avatar Apr 03 '17 03:04 mistercrunch

@alanmcruickshank Unless I am missing something the pandas resampling methods either backfill or forward-fill. There is no fill method (that I can find) that zero fills - which is what we really want.

benvogan avatar Apr 04 '17 21:04 benvogan

I think fill_method=None will fill with NA, which translates to gaps in trendlines in nvd3 as opposed to a non-linear axis. It's easy to call fillna(0) if you want to replace those NA too. Though users might want either... I'd say default should be NA.

mistercrunch avatar Apr 05 '17 07:04 mistercrunch

Notice: this issue has been closed because it has been inactive for 383 days. Feel free to comment and request for this issue to be reopened.

mistercrunch avatar Apr 23 '18 17:04 mistercrunch

It would be ideal to have some way to show gaps in data, since that can often indicate some sort of system failure (broken ingestion, etc). The current approach of effectively interpolating can mask problems. Setting the How dropdown of of the pandas.resample section to sum, the Rule dropdown to whatever your interval is and leaving the Fill Method dropdown blank, seems to do what I want in this particular case. @mistercrunch @benvogan

trtg avatar Mar 12 '19 21:03 trtg