apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.4k stars 19.61k forks source link

[Bug] yAxis axisLabel width #20425

Open tiansial opened 1 day ago

tiansial commented 1 day ago

Version

5.5.1

Link to Minimal Reproduction

https://codesandbox.io/p/sandbox/agitated-nova-hrm3w5?file=%2Fsrc%2FApp.js%3A10%2C18

Steps to Reproduce

If I have multiple charts stacked vertically with the same X-axis and different Y-axis values, the charts won't be aligned due to the other Y-axis width. I'm using https://echarts.apache.org/en/option.html#yAxis.axisLabel.width to manually set a specific width on all the charts, but I'm not getting the expected behaviour.

image

Current Behavior

yAxis axisLabel width does not respect https://echarts.apache.org/en/option.html#yAxis.axisLabel.width

Expected Behavior

yAxis axisLabel should be set width https://echarts.apache.org/en/option.html#yAxis.axisLabel.width

Environment

- OS: macOS 15.0.1 
- Browser: Chrome 129.0.6668.91
- Framework: Remix

Any additional comments?

No response

helgasoft commented 1 day ago

have you tried grid with axis sync, or connect ?