superset icon indicating copy to clipboard operation
superset copied to clipboard

X-axis format not working for timestamps

Open danmdoh opened this issue 7 years ago • 1 comments

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 there are any. (Nothing interesting :\ )
  • [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 versions

0.31--release, also master as of cd54a567dd421481126b7939a2c1f3772d3f3b50

Expected results

After updating from 0.28.1 to 0.31--release, when exploring a Line Chart, X-axis labels should update to reflect the "X Axis Format" setting.

Actual results

X Axis labels do not reflect value of the "X Axis Format" setting, but instead display the full verbose timestamp. Screen Shot 2019-03-27 at 4 12 48 PM

(Exception: if the label is on the bound and "X Bounds" is selected, the formatting will be reflected for that label only). Screen Shot 2019-03-27 at 5 07 39 PM

Steps to reproduce

  1. Start off with version 0.28.1.
  2. Have a dozen or so of your coworkers add data sources, charts and dashboards for about 5 months.
  3. Attempt to update to 0.29.0rc7 to fix the Time Filter issue.
  4. When 0.29.0rc7 and 0.29.0rc8 fail to build, try 0.31--release.
  5. When that works, load superset, login, navigate to Charts, and create a new chart.
  6. Select a data source (any table from a postgres database that contains a TIMESTAMP field).
  7. Select the "Line Chart" option.
  8. Try to change the "X Axis Format" setting and check if the expected format change is reflected in the chart.

danmdoh avatar Mar 28 '19 00:03 danmdoh

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. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

stale[bot] avatar May 27 '19 01:05 stale[bot]