使用的Echarts版本是3.3.1,有标题不能居中的问题。在官网示例中也能重现。
option = { title: { text: '标题标题', textAlign: 'center' } }
使用
option = { title: { text: '标题标题', left: 'center' } }
只有 left 是具体数值的时候 textAlign 才有效,但是默认 left 是 'left',所以忽略 textAlign 强制左对齐
'left'
Most helpful comment
使用