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

'Smart Date' shows inconsistent date formats on 1st of month #1056

Closed
dugjason opened this issue Sep 1, 2016 · 1 comment
Closed

'Smart Date' shows inconsistent date formats on 1st of month #1056

dugjason opened this issue Sep 1, 2016 · 1 comment
Labels
inactive Inactive for >= 30 days

Comments

@dugjason
Copy link

dugjason commented Sep 1, 2016

On September 1st, I checked a chart which contained data from August 30, 31 and Sept 1. The timestamps shown for each column are;

  • Tue Aug 30
  • Wed Aug 31
  • September 2016

It would make sense to me to show "Thu Sep 01" for consistency

screen shot 2016-09-01 at 09 18 17

SQL query and response were;

SELECT subtype AS subtype,
       DATE(created_at) AS timestamp,
       COUNT(*) AS count
FROM fb_ms_staging
INNER JOIN
  (SELECT subtype AS subtype__
   FROM fb_ms_staging
   WHERE created_at >= '2016-08-25 09:17:04.000000'
     AND created_at <= '2016-09-01 09:17:04.000000'
   GROUP BY subtype
   ORDER BY COUNT(*) DESC LIMIT 50) AS anon_1 ON subtype = subtype__
WHERE created_at >= '2016-08-25 09:17:04.000000'
  AND created_at <= '2016-09-01 09:17:04.000000'
GROUP BY subtype,
         DATE(created_at)
ORDER BY count DESC LIMIT 50000

+---------+------------+-------+
| subtype | timestamp  | count |
+---------+------------+-------+
| link    | 2016-08-31 |    64 |
| link    | 2016-08-30 |    39 |
| photo   | 2016-08-30 |    15 |
| link    | 2016-09-01 |    12 |
| photo   | 2016-08-31 |     7 |
| status  | 2016-08-31 |     4 |
| video   | 2016-08-31 |     4 |
+---------+------------+-------+
7 rows in set (0.86 sec)

Using Caravel 0.10.0 (from pip install) on OSX

@stale
Copy link

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

@stale stale bot added the inactive Inactive for >= 30 days label Apr 11, 2019
@stale stale bot closed this as completed Apr 18, 2019
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 17, 2021
…on (apache#1056)

* fix(plugin-chart-echarts): include label length in distance calculation

* bump echarts

Co-authored-by: root <[email protected]>
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 24, 2021
…on (apache#1056)

* fix(plugin-chart-echarts): include label length in distance calculation

* bump echarts

Co-authored-by: root <[email protected]>
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 25, 2021
…on (apache#1056)

* fix(plugin-chart-echarts): include label length in distance calculation

* bump echarts

Co-authored-by: root <[email protected]>
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 26, 2021
…on (apache#1056)

* fix(plugin-chart-echarts): include label length in distance calculation

* bump echarts

Co-authored-by: root <[email protected]>
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

1 participant