Incubator-superset: [explore] disable "granularity" control for non-timeseries visualizations

Created on 11 May 2017  路  5Comments  路  Source: apache/incubator-superset

Make sure these boxes are checked before submitting your issue - thank you!

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

Superset version

0.17.6

Expected results

Using the timestamp column for the series, I would expect the time grain to apply, so that the series is e.g. weekly.

Actual results

The query executed does not include any statement regarding the time grain and this is visible in the visualization.

Steps to reproduce

Create a distribution bar chart with timestamp series.

#bug

Most helpful comment

I think this is a valid issue, we should only show granularities for charts types which group-by time (time-series). Having this displayed for non-time-series based charts is misleading.

All 5 comments

You may want to use the time series bar chart. We should hide the granularity selector on visualizations that are not time series...

I used the time series bar chart instead. Wouldn't it be better if there were only one bar chart visualization and the type would change depending on whether the time grain has a value or not?

Perhaps, though some of the form elements as they exist should get enabled/disabled based on whether granularity is specified or not, and the change management around this change (a database migration script that would alter slices to the new scheme) would be significant.

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

I think this is a valid issue, we should only show granularities for charts types which group-by time (time-series). Having this displayed for non-time-series based charts is misleading.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

deity-bram picture deity-bram  路  3Comments

vylc picture vylc  路  3Comments

john-bodley picture john-bodley  路  3Comments

amien90 picture amien90  路  3Comments

sashank picture sashank  路  3Comments