[GitHub] [incubator-superset] wushenchao commented on issue #7362: Pivot Table Field alias display problem

2019-08-22 Thread GitBox
wushenchao commented on issue #7362: Pivot Table  Field alias display problem
URL: 
https://github.com/apache/incubator-superset/issues/7362#issuecomment-524144368
 
 
   > This issue affects all of my pivot tables.
   
I replace with the df_html data in viz.py PivotTableViz,
   
   the code:
   group_bys = self.form_data.get('groupby')
   if group_bys and len(group_bys) > 1:
   for col in group_bys:
   for column in self.datasource.columns:
   verbose_name = column.verbose_name
   if column.column_name == col and verbose_name:
   df_html = df_html.replace('{}'.format(col), 
'{}'.format(verbose_name), 1)
   
   return dict(
   columns=list(df.columns),
   html=df_html,
   ) 
   
   
   
   


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:
us...@infra.apache.org


With regards,
Apache Git Services

-
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org



[GitHub] [incubator-superset] wushenchao commented on issue #7362: Pivot Table Field alias display problem

2019-08-21 Thread GitBox
wushenchao commented on issue #7362: Pivot Table  Field alias display problem
URL: 
https://github.com/apache/incubator-superset/issues/7362#issuecomment-523731953
 
 
   > We have the same problem. Only the header of the first GroupBy column 
displays Alias correctly. The remaining Group By column headers display the 
internal name of the columns (ignoring defined alias).
   > **Superset Version:** 0.28.1
   > Same as #5616
   
   I solved the problem temporarily by replacing it,
   Is there a better way?


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:
us...@infra.apache.org


With regards,
Apache Git Services

-
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org