You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/02/02 09:04:03 UTC

[GitHub] [echarts] OnlyAttacker edited a comment on issue #5346: y坐标轴标题(name)文字位置不能相对于y轴居左的问题

OnlyAttacker edited a comment on issue #5346:
URL: https://github.com/apache/echarts/issues/5346#issuecomment-288963582


   分析了一下代码发现axisName的nameRotate属性是不是根据axisName的中心做的旋转,所以使用nameRotate:0.1来做一下旋转就可以使axisName居左显示。
   ```js
   option = {
     yAxis: {
           min: 0,
           max: 40,
           type: 'value',
           left: 0,
           axisLine: {onZero: false},
          **nameRotate:0.1,//使用这个属性**
           name: "名字很长很长很长很长很长很长很长很长很长很长很长很长",
           nameLoaction: "center"
     },
   }
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org