You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/10/12 10:53:15 UTC

[GitHub] [echarts] plainheart commented on a change in pull request #15869: fix(tooltip): format boolean in value #15809

plainheart commented on a change in pull request #15869:
URL: https://github.com/apache/echarts/pull/15869#discussion_r726999433



##########
File path: src/util/format.ts
##########
@@ -111,6 +111,9 @@ export function makeValueReadable(
             ? (isNumberUserReadable(value) ? value + '' : '-')
             : '-';
     }
+    if (typeof value === 'boolean') {
+        return value ? 'true' : 'false';

Review comment:
       convert to string by `value + ''`? 




-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org