Skip to content

fix: Enable 'nameTextStyle.width' to take effect#16941

Closed
jiawulin001 wants to merge 2 commits intoapache:masterfrom
jiawulin001:issue#16940
Closed

fix: Enable 'nameTextStyle.width' to take effect#16941
jiawulin001 wants to merge 2 commits intoapache:masterfrom
jiawulin001:issue#16940

Conversation

@jiawulin001
Copy link
Member

Brief Information

This pull request is in the type of:

  • bug fixing
  • new feature
  • others

What does this PR do?

Enable user to use nameTextStyle.width to adjust the maximum width of axis name text rect.

Fixed issues

Details

Before: What was the problem?

User cannot change the width of axis name text rect with attribute nameTextStyle.width. The reason for this can be referred to at #16940 (comment)

before #16940

After: How is it fixed in this PR?

Now by specifying nameTextStyle.width, user can limit the maximum width of the text rect.

after #16940

Misc

  • The API has been changed (apache/echarts-doc#xxx).
  • This PR depends on ZRender changes (ecomfe/zrender#xxx).

Related test cases or examples to use the new APIs

N.A.

Others

Merging options

  • Please squash the commits into a single one when merging.

Other information

@echarts-bot
Copy link

echarts-bot bot commented Apr 25, 2022

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.

@pissang
Copy link
Contributor

pissang commented Apr 25, 2022

Seems already exists an PR #16206

@jiawulin001
Copy link
Member Author

Oh, sorry didn't know that. Will close this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] ’width‘ is not work in axis‘s nameTextStyle

2 participants