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/08/02 13:23:06 UTC

[GitHub] [echarts] liuyang77886 opened a new issue #15462: sankey桑基图需要设置每层节点的字体大小从大到小

liuyang77886 opened a new issue #15462:
URL: https://github.com/apache/echarts/issues/15462


   ### Version
   5.1.2
   
   ### Steps to reproduce
   option.series.label: {
                   color: 'rgba(0,0,0,0.7)',
                   fontFamily: 'Arial',
                   fontSize: 10
               }
   
   ### What is expected?
   需要设置不同层的文字
   
   ### What is actually happening?
   每层的文字一样大
   
   <!-- 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.

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


[GitHub] [echarts] echarts-bot[bot] commented on issue #15462: sankey桑基图需要设置每层节点的字体大小从大到小

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






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


[GitHub] [echarts] liuyang77886 commented on issue #15462: sankey桑基图需要设置每层节点的字体大小从大到小

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


   > 可以试试使用 labelLayout 回调函数根据参数返回不同的 fontSize
   
   请给我示例可以吗。我大概理解你的意思,但是不知道怎么使用


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


[GitHub] [echarts] liuyang77886 closed issue #15462: sankey桑基图需要设置每层节点的字体大小从大到小

Posted by GitBox <gi...@apache.org>.
liuyang77886 closed issue #15462:
URL: https://github.com/apache/echarts/issues/15462


   


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


[GitHub] [echarts] helgasoft commented on issue #15462: sankey桑基图需要设置每层节点的字体大小从大到小

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


   With [labelLayout](https://echarts.apache.org/en/option.html#series-sankey.labelLayout) you can have variable font sizes, but cannot set _color_ or _fontFamily_.
   Open [this example](https://echarts.apache.org/examples/en/editor.html?c=graph-label-overlap) and replace parameter _labelLayout_ with the following code to see the effect.
   ```js
       labelLayout(params) {
           return {
              fontSize: Math.max(params.rect.width / 2, 5),
           }
       },
   ```


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


[GitHub] [echarts] pissang commented on issue #15462: sankey桑基图需要设置每层节点的字体大小从大到小

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


   可以试试使用 labelLayout 回调函数根据参数返回不同的 fontSize


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