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

grid.containLabel在xAxis.axisLabel.rotate设置的情况下失效 #5148

Closed
Suier opened this issue Feb 27, 2017 · 1 comment
Closed

grid.containLabel在xAxis.axisLabel.rotate设置的情况下失效 #5148

Suier opened this issue Feb 27, 2017 · 1 comment
Labels
enhancement stale Inactive for a long time. Will be closed in 7 days.

Comments

@Suier
Copy link

Suier commented Feb 27, 2017

One-line summary [问题简述]

grid.containLabel在xAxis.axisLabel.rotate设置的情况下失效

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]:3.4.0
  • Browser version [浏览器类型和版本]: chrome 56.0.2924.87
  • OS Version [操作系统类型和版本]:win7 64位

Expected behaviour [期望结果]

grid包含x轴标签

ECharts option [ECharts配置项]

option = {
  series:{
    data:[1,2,3]
  },
  grid:{
    containLabel:true
  },
  xAxis:{
    data:["aaaaaaaaaa","bbbbbbbbbb","ccccccccc"],
    axisLabel:{
      rotate:45
    }
  },
  yAxis:{}
}

Other comments [其他信息]

@pissang
Copy link
Contributor

pissang commented Feb 28, 2017

containLabel 计算的是 rotate 之前的

100pah added a commit that referenced this issue Nov 3, 2017
#5148: Consider label rotation when grid.containLabel is true
@Ovilia Ovilia added the stale Inactive for a long time. Will be closed in 7 days. label Aug 15, 2019
@stale stale bot closed this as completed Aug 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement stale Inactive for a long time. Will be closed in 7 days.
Projects
None yet
Development

No branches or pull requests

3 participants