khazit commented on issue #21478:
URL: https://github.com/apache/echarts/issues/21478#issuecomment-3760670746

   I'm really struggling to understand how this is supposed to be a feature. 
Did you even test the sandbox link? 
   
   Setting `barWidth: "90%"` expands the xAxis by multiple days That’s not 
auto-sizing. Why would **decreasing** the bar width **increase** the x axis?
   
   Also, why does this only happen with two points, but not with three?
   ```
   option = {
     xAxis: {
       type: 'time',
     },
     yAxis: {
       type: 'value'
     },
     series: [
       {
         data: [
           [1768428600000, 1],
           [1768466400000, 1],
           [1768506400000, 1],
         ],
         type: 'bar',
         barWidth: "90%",
       }
     ]
   };
   ```
   
   If this were an intentional sizing rule, it should behave consistently 
regardless of point count.
   I understand that bars have width and that scatter points don’t. That still 
doesn’t explain why a percentage-based bar width should massively distort a 
time axis to this extent, and only under very specific conditions.


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