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 2022/01/28 13:57:59 UTC

[GitHub] [superset] villebro commented on a change in pull request #18216: fix(explore): Pie chart label formatting when series is temporal

villebro commented on a change in pull request #18216:
URL: https://github.com/apache/superset/pull/18216#discussion_r794525158



##########
File path: superset-frontend/plugins/plugin-chart-echarts/src/utils/series.ts
##########
@@ -88,9 +88,6 @@ export function formatSeriesName(
   if (name === undefined || name === null) {
     return NULL_STRING;
   }
-  if (typeof name === 'number') {

Review comment:
       The order of these affects the result - temporal columns are almost always epochs (`number`), and therefore the number formatter was always used on them. Now the "original" type of the column is first checked (based on `is_dttm` coming from the backend), so temporal numerical names will now be properly identified.




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