Skip to content

Fix axisLabel.height not taking effect without backgroundColor#21531

Closed
04cb wants to merge 1 commit intoapache:masterfrom
04cb:fix/axis-label-height
Closed

Fix axisLabel.height not taking effect without backgroundColor#21531
04cb wants to merge 1 commit intoapache:masterfrom
04cb:fix/axis-label-height

Conversation

@04cb
Copy link

@04cb 04cb commented Mar 8, 2026

Fixes #21504. The height property was being set on text style but had no visual effect without a backgroundColor because zrender only uses height for background box rendering. This fix enables box properties processing when height is explicitly set, so that zrender can properly render the box with the specified height.

The height property was being set on text style but had no visual effect
without a backgroundColor because zrender only uses height for background
box rendering.

Fix: Enable box properties processing when height is explicitly set, so
that zrender can properly render the box with the specified height.
@echarts-bot
Copy link

echarts-bot bot commented Mar 8, 2026

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.

Please DO NOT commit the files in dist, i18n, and ssr/client/dist folders in a non-release pull request. These folders are for release use only.

To reviewers: If this PR is going to be described in the changelog in the future release, please make sure this PR has one of the following labels: PR: doc ready, PR: awaiting doc, PR: doc unchanged

This message is shown because the PR description doesn't contain the document related template.

Copy link
Contributor

@Ovilia Ovilia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As suggested in #21504, I believe the current performance is, to a certain extent, by-design. Therefore, this issue might not need to be fixed. Moreover, making a fix could potentially have an impact on compatibility. Hence, I suggest closing this pull request.

@04cb 04cb closed this by deleting the head repository Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] The axisLabel.height property does not take effect when no background color is set

2 participants