Adaptative Formatting month and Quarter
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
20.5
Expected results
In the time grain filter on choosing month and selecting the months (jan-17 , Dec -17 , jan-18) . The result should show something like this .

Actual results
But if we use adaptative formatting and choose the same time period as above , we are able to see that Jan-2017 as (2017) and jan-2018 as (2018) . This sometimes misleads the end user on what they are looking at whether year data or month wise data .
Time Grain - Month

Similarly choosing quarter on time grain produces the correct results but the x-axis is still displayed in months instead of quarter . The ' X - axis ' to be displayed in quarter instead of month will be very helpfull .
Time Grain - Quarter

Steps to reproduce
In the time series charts , choose
- date field in time column
- under time grain choose Month
- Apply Filter for the month January .
- Under time grain choose Quarter .
Thanks
Not that i think this changed but 0.20.5 is quite old, please reproduce against a newer release
@xrmx Thanks for the quick response . I have reproduced the same in version 22.1 , but still seeing the same results .
@xrmx @mistercrunch any update regarding this issue .
I agree that adaptative formatting could perform better, in the meantime you can specify the exact time format you want.
@mistercrunch yes i tried specifying the x-axis format which i require . But the issue is if i choose %B-%Y which will give january 2018 , this works fine when the time grain is specified as month , but when the time grain is choosen as year , this over-rides the format where all the year data are displayed as january 2017 , january 2018 instead of 2017 , 2018 . Again this misleads the visualization .
The only way I was able to find to get month-to-date results was to use the string: one day after last month eom, which is hilarious but seems to have worked.
https://stackoverflow.com/questions/49862866/how-to-mtd-ytd-in-apache-superset
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.
Ideally the formatting would be aware of the time granularity and pick a default based on that.
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.