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

Closed
semmy2010 opened this Issue Aug 7, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@semmy2010

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)

@semmy2010

This comment has been minimized.

Show comment
Hide comment
@semmy2010

semmy2010 Oct 28, 2016

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

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

@100pah 100pah closed this in 801a9db Nov 15, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment