apache / echarts

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

fix-18151: When using pictorialbar, the y-axis cannot adapt, resulting in some column charts being offset #20496

Open alskdj777 opened 1 week ago

alskdj777 commented 1 week ago

Brief Information

This pull request is in the type of:

What does this PR do?

Fixed issues

Details

Before: What was the problem?

After: How does it behave after the fixing?

Document Info

One of the following should be checked.

Misc

ZRender Changes

Related test cases or examples to use the new APIs

N.A.

Others

Merging options

Other information

echarts-bot[bot] commented 1 week ago

Thanks for your contribution! The community will review it ASAP. In the meanwhile, please checkout the coding standard and Wiki about How to make a pull request.

Ovilia commented 1 week ago

Was this problemed solved by setting custom.clip to be true, which has been supported since v5.5.0 in #19197 ?

alskdj777 commented 1 week ago

Was this problemed solved by setting custom.clip to be true, which has been supported since v5.5.0 in #19197 ?

According to the update records of ECharts version 5.5.0, the custom.clip attribute was indeed introduced to support clipping for custom series. My PR also addresses the y-axis adaptation issue, ensuring that when using pictorial bar charts, the y-axis can correctly adapt to the chart content and prevent the bar charts from being offset. This is consistent with the solution described in issue #19197 that you mentioned. Thank you for the reminder.