ITchenjian opened a new issue #16666:
URL: https://github.com/apache/echarts/issues/16666


   ### Version
   
   5.3.1
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   option = {
     yAxis: {
       type: 'category',
       data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
     },
     xAxis: {
       type: 'time',
       minInterval: 3600 * 24 * 1000,
       axisLabel : {
           color:'#3D3F4B',
           interval: 0,
           showMaxLabel: true,
           formatter: (value, index) => {
               var date = new Date(value);
               var texts = [(date.getMonth() + 1), date.getDate()];
               return texts.join('-');
           }
       },
     },
     series: [
       {
         data: ['2021/12/15', '2021/12/15', '2021/12/16', '2021/12/16', 
'2021/12/16', '2021/12/16', '2021/12/16'],
         type: 'bar',
         label: {
             show: true,
             position: "right",
             formatter: function(params) {
                 return '测试1';
             },
             color: '#000',
         },
       }
     ]
   };
   
   ### Current Behavior
   
   series-bar. label不显示(奇怪的是,将X轴于Y轴互换就可显示)
   如图
   
![image](https://user-images.githubusercontent.com/24711527/157790362-0b2cb070-b845-4bab-a726-697410112923.png)
   X轴于Y轴互换后
   
![image](https://user-images.githubusercontent.com/24711527/157790492-cb178413-3d88-4403-b78c-8f2890091b28.png)
   
   
   ### Expected Behavior
   
   series-bar. label显示问题
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   _No response_


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to