xianghongai edited a comment on issue #9901: The axis name align way base on 
x/y axis line ?
URL: 
https://github.com/apache/incubator-echarts/issues/9901#issuecomment-462638115
 
 
   yAxis `nameTextStyle` `align` is not working, in items `color` option in 
working.
   
   ![yaxis nametextstyle 
align-not-working](https://user-images.githubusercontent.com/2075006/52616962-3eead580-2ed5-11e9-948c-241aac78f33b.png)
   
   ```javascript
   option = {
       xAxis: {
           type: 'category',
           name: `xAxis very very very very very very very very long`,
           nameGap: 35,
           nameLocation: 'end',
           nameTextStyle: {
               color: '#00f',
               fontWeight: 'bolder',
               align: 'left',
               verticalAlign: 'left'
           },
           data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
       },
       yAxis: {
           type: 'value',
           name: `yAxis very very very very very very very very long`,
           nameGap: 35,
           nameLocation: 'end',
           nameTextStyle: {
               color: '#f00',
               fontWeight: 'bolder',
               align: 'right'
           }
       },
       series: [{
           data: [820, 932, 901, 934, 1290, 1330, 1320],
           type: 'line',
           smooth: true
       }]
   };
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to