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/06/01 07:58:39 UTC

[GitHub] [superset] musduo opened a new issue #14929: [Cosmetic][Bar chart] Null bar values

musduo opened a new issue #14929:
URL: https://github.com/apache/superset/issues/14929


   How can I change viz.py to prevent it from showing null where there is no data in the grouped bar graph.I want it to print 0 instead of the null value. 
   
   I think this is the part related to it 
   
   `
   
   #pandas will throw away nulls when grouping/pivoting,
           # so we substitute NULL_STRING for any nulls in the necessary columns
           filled_cols = self.groupby + columns
           df = df.copy()
           df[filled_cols] = df[filled_cols].fillna(value=NULL_STRING)
   
   `
   
   I'm writing 0 instead of NULL_STRING, but that doesn't have any effect. 


-- 
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 edited a comment on issue #14929: [Cosmetic][Bar chart] Null bar values

Posted by GitBox <gi...@apache.org>.
junlincc edited a comment on issue #14929:
URL: https://github.com/apache/superset/issues/14929#issuecomment-852472374


   @musduo thanks for reporting, we are still discussing the proper behavior of this case. 
   
   can you also provide a gif or screenshot for your use case? grouped bar = stacked? which bar are you using? time-series? regular? 


-- 
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 #14929: [Cosmetic][Bar chart] Null bar values

Posted by GitBox <gi...@apache.org>.
junlincc commented on issue #14929:
URL: https://github.com/apache/superset/issues/14929#issuecomment-852472374


   @musduo thanks for reporting, we are still discussing the proper behavior of this case. 
   
   can you also provide a gif or screenshot for your use case? grouped bar = stacked? 


-- 
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 #14929: [Cosmetic][Bar chart] Null bar values

Posted by GitBox <gi...@apache.org>.
junlincc commented on issue #14929:
URL: https://github.com/apache/superset/issues/14929#issuecomment-852550317


   link https://github.com/apache/superset/issues/14893


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