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-unsubscr...@echarts.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org