superset icon indicating copy to clipboard operation
superset copied to clipboard

heatmap axis cannot display date type column correctly

Open hecaodong opened this issue 7 years ago • 4 comments

A clear and concise description of what the bug is. when Heatmap axis was date type column, it can not be display correctly. For example, 2017-09-01 was displayed as 1504224000000

image

Expected results

what you expected to happen.

Actual results

what actually happens.

Screenshots

If applicable, add screenshots to help explain your problem.

How to reproduce the bug

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Environment

(please complete the following information):

  • superset version: superset version 0.34
  • python version: python --version 3.6.9
  • node.js version: node -v
  • npm version: npm -v

Checklist

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. yes
  • [x] I have reproduced the issue with at least the latest released version of superset. yes
  • [x] I have checked the issue tracker for the same issue and I haven't found one similar. yes

Additional context

Add any other context about the problem here.

hecaodong avatar Oct 24 '19 03:10 hecaodong

Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.97. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

issue-label-bot[bot] avatar Oct 24 '19 03:10 issue-label-bot[bot]

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 Dec 23 '19 03:12 stale[bot]

I have the same issue. Any fix coming soon?

FredericoCoelhoNunes avatar Dec 30 '19 17:12 FredericoCoelhoNunes

Just use to_char() function when writing your SQL query in order to convert your date value to text. Example: to_char(your_date_column, 'YYYY-MM-DD')

aussat avatar Apr 17 '20 20:04 aussat