wxhzyr1 opened a new issue, #21451:
URL: https://github.com/apache/echarts/issues/21451

   ### Version
   
   6.0.0
   
   ### Link to Minimal Reproduction
   
   none
   
   ### Steps to Reproduce
   
   option = {
     title: {
       text: 'Stacked Line'
     },
     tooltip: {
       trigger: 'axis'
     },
     legend: {
       data: ['Email', 'Union Ads', 'Video Ads', 'Direct', 'Search Engine']
     },
     grid: {
       left: '3%',
       right: '4%',
       bottom: '3%',
       containLabel: true
     },
     toolbox: {
       feature: {
         saveAsImage: {}
       }
     },
     xAxis: {
       type: 'category',
       boundaryGap: false,
       data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
     },
     yAxis: {
       type: 'value'
     },
     series: [
       {
         name: 'Email',
         type: 'line',
         stack: 'Total',
         data: [0, 0, 0, 0, 0, 0, 1]
       },
       {
         name: 'Union Ads',
         type: 'line',
         stack: 'Total',
         data: [0, 0, 0, 0, 0, 0, 1]
       },
       {
         name: 'Video Ads',
         type: 'line',
         stack: 'Total',
         data: [0, 0, 0, 0, 0, 0, 0]
       },
       {
         name: 'Direct',
         type: 'line',
         stack: 'Total',
         data: [0, 0, 0, 0, 0, 0, 0]
       },
       {
         name: 'Search Engine',
         type: 'line',
         stack: 'Total',
         data: [0, 0, 0, 0, 0, 0, 1]
       }
     ]
   };
   数据如上
   
   ### Current Behavior
   
   none
   
   ### Expected Behavior
   
   最后一个数据的x轴展示正确的数据,当最后一个数字为0时,x轴展示对应的线
   
   ### 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