Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show continuous timeline on x-axis for Time Series plots #3708

Closed
3 tasks done
qeorqe opened this issue Oct 23, 2017 · 7 comments
Closed
3 tasks done

Show continuous timeline on x-axis for Time Series plots #3708

qeorqe opened this issue Oct 23, 2017 · 7 comments
Labels
inactive Inactive for >= 30 days

Comments

@qeorqe
Copy link
Contributor

qeorqe commented Oct 23, 2017

  • I have checked the superset logs for python stacktraces and included it here as text if any
  • I have reproduced the issue with at least the latest released version of superset
  • I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

0.20.4

Expected results

When I display my data on time series plot, I want to see the continuous timeline with objects (bars or points) on it.
If there are any gaps between the objects, I want to see all the gaps on the timeline.

Actual results

Look at the timestamps below the plot for the Time Series Bat Chart.
All the objects are arranged side-by-side, so I don't see the gaps between them.
The same is for Time Series Line Chart.

continuous timeline

@qeorqe qeorqe changed the title Continuous timeline for Time Series plots Show continuous timeline on x-axis for Time Series plots Oct 24, 2017
@layzerar
Copy link

Is there any plan for this?

If inserting zeros for missing time series is acceptable, I can submit a PR for this.

@rumbin
Copy link
Contributor

rumbin commented Oct 29, 2017

I think, this behavior is all the same with other time series representations. Effectively, it gets plotted what the DB query returns. If there is no data present for a certain interval step, then the DB does not return any row.

I guess, the way superset is designed, you are supposed to resample the data via the Advanced Analytics tab in Explore in order to fill missing values.

Personally, I would not favor to have the timeline generally filled with zeros, as often enough I am only interested in the real events.

@rumbin
Copy link
Contributor

rumbin commented Oct 29, 2017

I agree, though, that this is counter intuitive to fresh users...

@kristw kristw added the .vis label Dec 24, 2018
@SpyderRivera
Copy link
Contributor

Could it be an option to fill in missing data with zeros? Like a tick box?

@stale
Copy link

stale bot commented Apr 10, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the inactive Inactive for >= 30 days label Apr 10, 2019
@stale stale bot closed this as completed Apr 17, 2019
@lgellis
Copy link

lgellis commented Mar 9, 2020

Can we please re-open this issue? If superset didn't specialize in time-series data, I could maybe see that it might not need to fill in missing time periods with 0 values. This would just be plotting the data as-is with time being like any other category.

However, superset does specialize in time-series data. And so it should handle the effective plotting of missing data for time frames. In time series analysis you need to represent all time intervals that you are plotting across. This is industry standard for time focused plots and it's what data viz viewers are expecting.

@shawnz42
Copy link

shawnz42 commented Jun 8, 2020

Can we please re-open this issue +1. It's very easy to ignore the missing 0 value if the timeline is not continuous. I think we can add a function like 'padding timeline' in "Advanced Analytics". If user enable the function , a continuous pandas datetime series will be left join the queried dataframe and fill na with 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inactive Inactive for >= 30 days
Projects
None yet
Development

No branches or pull requests

7 participants