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/04/12 08:21:47 UTC

[GitHub] [echarts] ctrlands opened a new issue #14644: treemap获取数据所在矩阵的宽高属性

ctrlands opened a new issue #14644:
URL: https://github.com/apache/echarts/issues/14644


   ### What problem does this feature solve?
   以svg渲染矩阵树图,当某条数据所占比例特别小的时候,这个时候该条数据的宽或者高就会比较小,就会造成文本不显示或者显示不美观,如果能拿到每条数据所在矩阵的宽高,就可以在label的formatter里面更加灵活的去以更加美观/完整的方式展示文本信息
   
   ### What does the proposed API look like?
   label: {
     formatter: (params) => {
       // params里面包含当前数据的矩阵宽高
     }
   }
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


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



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


[GitHub] [echarts] echarts-bot[bot] commented on issue #14644: treemap获取数据所在矩阵的宽高属性

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #14644:
URL: https://github.com/apache/echarts/issues/14644#issuecomment-817598680






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



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


[GitHub] [echarts] pissang commented on issue #14644: treemap获取数据所在矩阵的宽高属性

Posted by GitBox <gi...@apache.org>.
pissang commented on issue #14644:
URL: https://github.com/apache/echarts/issues/14644#issuecomment-820865331


   @ctrlands echarts 5.0 开始可以在 `labelLayout` 配置中根据矩形高宽配置字体,参考这个例子 https://github.com/apache/echarts/blob/master/test/treemap-obama.html#L343


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



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