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

标题使用textAlign无法居中 #4550

Closed
caseylai opened this issue Nov 24, 2016 · 2 comments
Closed

标题使用textAlign无法居中 #4550

caseylai opened this issue Nov 24, 2016 · 2 comments

Comments

@caseylai
Copy link

问题简述 (One-line summary)

使用的Echarts版本是3.3.1,有标题不能居中的问题。在官网示例中也能重现。

版本及环境 (Version & Environment)

  • ECharts 版本 (ECharts version): 3.3.1
  • 浏览器类型和版本 (Browser version): Chrome 53
  • 操作系统类型和版本 (OS Version): Mac OSX

重现步骤 (Steps to reproduce)

  1. 设置 title: { text: '标题标题', textAlign: 'center' }
  2. 重现不能居中的问题

ECharts配置项 (ECharts option)

option = {
    title: { text: '标题标题', textAlign: 'center' }
}

其他信息 (Other comments)

@pissang
Copy link
Contributor

pissang commented Nov 25, 2016

只有 left 是具体数值的时候 textAlign 才有效,但是默认 left'left',所以忽略 textAlign 强制左对齐

@pissang pissang closed this as completed Nov 25, 2016
@jingsam
Copy link

jingsam commented Feb 5, 2017

使用

option = {
    title: { text: '标题标题', left: 'center' }
}

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

No branches or pull requests

3 participants