You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2019/07/25 11:09:12 UTC

[GitHub] [incubator-echarts] trague opened a new issue #10918: xAxis.axisLabel.rich.align不起作用

trague opened a new issue #10918: xAxis.axisLabel.rich.align不起作用
URL: https://github.com/apache/incubator-echarts/issues/10918
 
 
   ### Version
   4.2.1
   
   ### Reproduction link
   [https://gallery.echartsjs.com/editor.html?c=xaoyw2XUvE&v=1](https://gallery.echartsjs.com/editor.html?c=xaoyw2XUvE&v=1)
   
   ### Steps to reproduce
   ```
   option = {
       title: {
           text: 'Awesome Chart'
       },
       xAxis: {
           data: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
           boundaryGap: false,
           axisLabel: {
               show: true,
               color: '#6C84A2',
               align: 'right',
               formatter: function(v, index) {
                   return '{a|'   v   '}'
               },
               rich: {
                   a: {
                       backgroundColor: '#F00',
                       align: 'center'
                   },
               }
           },
       },
       yAxis: {},
       series: [{
           type: 'line',
           data: [220, 182, 191, 234, 290, 330, 310]
       }]
   };
   ```
   
   ### What is expected?
   能够单独为指定的label设置align
   
   ### What is actually happening?
   未起作用
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   

----------------------------------------------------------------
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


With regards,
Apache Git Services

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