han-ysys opened a new issue, #18257: URL: https://github.com/apache/echarts/issues/18257
### Version 5.3.2 ### Link to Minimal Reproduction https://jsfiddle.net/6ta3qk4d/9/ ### Steps to Reproduce 参照[这个例子](https://echarts.apache.org/examples/zh/editor.html?c=custom-bar-trend)画了一个带有error bar的柱状图 ### Current Behavior 根据同一坐标上bar数量的不同,offsetCenter会有不同程度的偏移 <img width="360" alt="截屏2023-02-10 16 36 26" src="https://user-images.githubusercontent.com/70315648/218043154-725ace75-18b9-416c-afe8-cdd66357ea97.png"> 示例中图形同样存在偏移 <img width="326" alt="截屏2023-02-10 16 36 51" src="https://user-images.githubusercontent.com/70315648/218043257-e12d8306-a29e-4713-9a8b-78eb729d0674.png"> ### Expected Behavior 文档里对barLayout的返回值描述: ``` @return {Array.<Object>} [{ width: number bar 的宽度。 offset: number bar 的偏移量,以bar最左为基准。 offsetCenter: number bar 的偏移量,以bar中心为基准。 }, ...] ``` 如上的结果应该是不符合预期的 ### Environment ```markdown OS: macOS Monterey Browser: Chrome 96.0.4664.55 Framework Vue@3 ``` ### 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]
