Skip to content

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

@Suier

Description

@Suier

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 [其他信息]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementstaleInactive for a long time. Will be closed in 7 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions