You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/04/01 23:50:00 UTC
[GitHub] [superset] kristw opened a new issue #13924: Big number display tooltip with incorrect time granularity in dashboard
kristw opened a new issue #13924:
URL: https://github.com/apache/superset/issues/13924
## Expected results
A big number chart is added to a dashboard with "time grain" override.
The tooltip of the big number chart in the dashboard should show the data point with respect to the selected "time grain" in dashboard.
For example,
* When select `week`, the tooltip should show `start date -- end date`, e.g. 2021-04-19 -- 2021-04-23.
* When select `day`, the tooltip should show `date`, e.g. 2021-04-19.
## Actual results
When looking at the chart on explore page, it works correctly.

However, the same chart in the dashboard behave unexpectedly.
* When select `week`, the tooltip show `month`, e.g. Mar 2020
* When select `day`, the tooltip shows `month`, e.g. Mar 2020.

#### How to reproduce the bug
1. Create a big number chart.
2. Put it in a dashboard with time grain override.
3. Set time grain.
4. Check tooltip.
### Environment
(please complete the following information):
- superset version: `superset version`
- python version: `python --version`
- node.js version: `node -v`
### Checklist
Make sure to follow these steps 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.
- [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.
### Additional context
Add any other context about the problem here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] kristw commented on issue #13924: [chart]Big number display tooltip with incorrect time granularity in dashboard
Posted by GitBox <gi...@apache.org>.
kristw commented on issue #13924:
URL: https://github.com/apache/superset/issues/13924#issuecomment-812237548
I inspected the react component with chrome debugger and the first chart received "P1M" while the second chart received "P1W".

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] villebro commented on issue #13924: [chart]Big number display tooltip with incorrect time granularity in dashboard
Posted by GitBox <gi...@apache.org>.
villebro commented on issue #13924:
URL: https://github.com/apache/superset/issues/13924#issuecomment-838037021
I was able to repro, and noticed it affects both legacy and V1 charts. Here the weekly time grain should also be showing up on the table time col (which it does in Explore):

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] villebro closed issue #13924: [chart]Big number display tooltip with incorrect time granularity in dashboard
Posted by GitBox <gi...@apache.org>.
villebro closed issue #13924:
URL: https://github.com/apache/superset/issues/13924
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] junlincc commented on issue #13924: [chart]Big number display tooltip with incorrect time granularity in dashboard
Posted by GitBox <gi...@apache.org>.
junlincc commented on issue #13924:
URL: https://github.com/apache/superset/issues/13924#issuecomment-812239553
@kristw thanks for the details~ are you planning to fix it 😅
cc @EBoisseauSierra
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org