Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

给坐标轴设置了axisLabel.textStyle.fontSize后,grid.containLabel无效。 #3805

Closed
semmy2010 opened this issue Aug 7, 2016 · 1 comment
Labels

Comments

@semmy2010
Copy link

semmy2010 commented Aug 7, 2016

问题简述 (One-line summary)

给坐标轴设置了axisLabel.textStyle.fontSize后(比如:yAxis.axisLabel.textStyle.fontSize),grid.containLabel无效。当数值刻度很大时,刻度还是会被隐藏

版本及环境 (Version & Environment)

  • ECharts 版本 (ECharts version):3.2.2
  • 浏览器类型和版本 (Browser version):Google Chrome 版本 51.0.2704.103 m
  • 操作系统类型和版本 (OS Version): window 10

重现步骤 (Steps to reproduce)

1.设置yAxis.axisLabel.textStyle.fontSize
2.grid.containLabel=true;
3.数值设置很大 data=[93245324234,2,312,21,12]

期望结果 (Expected behaviour)

y轴的刻度值不会被挡住。

可能哪里有问题 (What went wrong)

不设置yAxis.axisLabel.textStyle.fontSize值 时,grid.containLabel=true;就有起作用,刻度不会被挡住

ECharts配置项 (ECharts option)

option = {"title":{"text":""},"color":["#f6a03d","#2986cc","#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],"grid":{"left":"auto","containLabel":true},"legend":{"left":"right","top":"middle","orient":"vertical","data":["天数"],"show":false},"series":[{"name":"天数","barGap":0,"itemStyle":{"normal":{"borderWidth":2,"borderColor":"#AC712F"}},"type":"bar","data":["92323232323","6","9","5","2"]}],"xAxis":{"name":"天气","nameLocation":"end","type":"category","data":["晴","阴","多云","阵雨","雷阵雨"]},"yAxis":{"name":"天数","nameLocation":"end","nameTextStyle":{"fontSize":16},"axisLabel":{"textStyle":{"fontSize":16}},"type":"value","splitLine":{"lineStyle":{"color":"#6E8394","width":2,"type":"dashed"}}}}

其他信息 (Other comments)

@pissang pissang added the pending We are not sure about whether this is a bug/new feature. label Aug 8, 2016
@pissang pissang added bug and removed pending We are not sure about whether this is a bug/new feature. labels Aug 25, 2016
@semmy2010
Copy link
Author

请问这个在哪个版本里解决了?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants