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/09/01 03:47:38 UTC

[GitHub] [echarts] cj11032 opened a new issue #15644: visualMap设置文字width无效

cj11032 opened a new issue #15644:
URL: https://github.com/apache/echarts/issues/15644


   ### Version
   4.9.0
   
   ### Steps to reproduce
   1.官网可以验证:设置该属性--visualMap-piecewise.textStyle. width
   2.具体设置值:
   visualMap: {
       type: "piecewise",
       splitNumber: 8,
       min: 0,
       max: 100,
       calculable: true,
       realtime: false,
       inRange: {
         color: ["#313695", "#4575b4", "#74add1", "#abd9e9", "#e0f3f8", "#ffffbf", "#fee090", "#fdae61", "#f46d43", "#d73027", "#a50026"]
       },
       textStyle: {
         width: 4,
         overflow: "break"
       }
     },
   
   ### What is expected?
   希望设置了文字宽度后,能实现文字换行
   
   ### What is actually happening?
   设置了width以及overflow属性依然无效
   
   ---
   分段型视觉映射组件在应用时有可能文字过长,希望能换行好看点
   
   <!-- 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] pissang commented on issue #15644: visualMap设置文字width无效

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


   5.0 开始才支持设置 width 和 overflow 换行


-- 
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 #15644: visualMap设置文字width无效

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


   @cj11032 Please provide a minimum reproducible demo for the issue either with https://codepen.io/Ovilia/pen/dyYWXWM , https://www.makeapie.com/editor.html or https://codesandbox.io/s/mystifying-bash-2uthz.
   
   *A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.


-- 
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 #15644: visualMap设置文字width无效

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






-- 
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 #15644: visualMap设置文字width无效

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






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