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/11/03 13:49:20 UTC

[GitHub] [superset] LalaGabor removed a comment on issue #13792: [chart]Time Series Bar Chart does not sort

LalaGabor removed a comment on issue #13792:
URL: https://github.com/apache/superset/issues/13792#issuecomment-945517072


   Hi lctdulac, I am not sure if this solves your issue, but I was able to sort by custom using a calculated column with a CASE function.
   For each CASE WHEN "" THEN "" condition you want to precede your THEN "" entry with a decreasing number of spaces. 
   For example: CASE WHEN month_column = "January" THEN "   January" _(3 spaces)_
   WHEN month_column = "February" THEN "  February _(2psaces)_
   WHEN month_column = "March" THEN " March" _(1psace)_
   ELSE month_column END
   Finally, on the CUSTOMIZE tab you can tick SORT BARS (which sorts by alphabetical, I believe)
   As Superset is not showing the initial spaces, at least for me, you should not have formatting issues


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

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