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 2022/09/02 07:41:04 UTC

[GitHub] [echarts] MoonpieChaury commented on issue #7766: 矩形树图treemap的样式问题。

MoonpieChaury commented on issue #7766:
URL: https://github.com/apache/echarts/issues/7766#issuecomment-1235175799

   > We can use `labelLayout` to set font size based on the size of rect. For example:
   > 
   > ```ts
   > labelLayout: function (params) {
   >     if (params.rect.width < 5 || params.rect.height < 5) {
   >         return {
   >             fontSize: 0
   >         };
   >     }
   >     return {
   >         fontSize: Math.min(Math.sqrt(params.rect.width * params.rect.height) / 10, 20)
   >     };
   > },
   > ```
   
   Could you please update the configuration item document? There is currently no labelLayout in the configuration items owned by Treemap. 
   thanks


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