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/05/21 08:25:00 UTC

[GitHub] [echarts] tinydata01 opened a new issue #15010: Alignment Issue

tinydata01 opened a new issue #15010:
URL: https://github.com/apache/echarts/issues/15010


   Version
   5.1.1
   
   Reproduction link
   https://echarts.apache.org/examples/en/editor.html?c=bar-y-category
   
   Steps to reproduce
   option = { title: { text: '世界人口总量', subtext: '数据来自网络' }, tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' } }, legend: { data: ['2011年', '2012年'] }, grid: { left: '3%', right: '4%', bottom: '3%', containLabel: true }, xAxis: { type: 'value', boundaryGap: [0, 0.01] }, yAxis: { type: 'category', axisLabel:{ width:100, overflow:'truncate' }, data: ['巴西', '印尼', '美国', '印度', '中国', '世界人口(万世界人口(万)'] }, series: [ { name: '2011年', type: 'bar', data: [18203, 23489, 29034, 104970, 131744, 630230] }, { name: '2012年', type: 'bar', data: [19325, 23438, 31000, 121594, 134141, 681807] } ] };
   
   Please paste the above code in the link shared and render 1)In Y Axis, data consists of array of strings and it is rendered as Y Axis Labels 2)But if we increase the string length by placing longer string, entire graph is moving towards right For example: yAxis: { type: 'category', axisLabel:{ width:100, overflow:'truncate' }, data: ['巴西', '印尼', '美国', '印度', '中国', '世界人口'] }, Instead we gave the date like below yAxis: { type: 'category', axisLabel:{ width:100, overflow:'truncate' }, data: ['巴西', '印尼', '美国', '印度', '中国', '世界人口(万世界人口(万)'] },
   
   What is expected?
   If Y axis label length is more than the width defined it should truncate or break based on configuration and Graph should be fixed position
   
   What is actually happening?
   Right now Label is truncated but graph size is reduced and moving right.


-- 
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 #15010: Alignment Issue

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


   This issue is not created using [issue template](https://ecomfe.github.io/echarts-issue-helper/) so I'm going to close it. 🙊
   Sorry for this, but it helps save our maintainers' time so that more developers get helped.
   Feel free to create another issue using the issue template.
   
   If you think you have already made your point clear without the template, or your problem cannot be covered by it, you may re-open this issue again.
   
   这个 issue 未使用 [issue 模板](https://ecomfe.github.io/echarts-issue-helper/?lang=zh-cn) 创建,所以我将关闭此 issue。
   为此带来的麻烦我深表歉意,但是请理解这是为了节约社区维护者的时间,以更高效地服务社区的开发者群体。
   如果您愿意,请使用 issue 模板重新创建 issue。
   
   如果您认为虽然没有使用模板,但您已经提供了复现问题的充分描述,或者您的问题无法使用模板表达,也可以重新 open 这个 issue。


-- 
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] closed issue #15010: Alignment Issue

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] closed issue #15010:
URL: https://github.com/apache/echarts/issues/15010


   


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