Echarts tooltip文字没有左对齐

tooltip : {
  trigger: 'axis',
  axisPointer : { // 坐标轴指示器,坐标轴触发有效
  type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
    },
  textStyle:{
  align:'left'
    }
}

 


解决办法:tooltip加入如下代码。

textStyle:{

                        align:'left'

}

posted @ 2016-11-27 18:05  景话宇意  阅读(14409)  评论(0)    收藏  举报