Skip to content
New issue

Have a question about this project?Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of serviceand privacy statement.We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Support axis.axisLabel.rotate: 'auto' #20408

Open
viking7982opened this issue Oct 11, 2024 · 0 comments
Open

[Feature] Support axis.axisLabel.rotate: 'auto' #20408

viking7982opened this issue Oct 11, 2024 · 0 comments
Labels
en This issue is in English new-feature pending We are not sure about whether this is a bug/new feature.

Comments

@viking7982
Copy link
Contributor

What problem does this feature solve?

When we haveaxisLabel.interval: 0,we need to setaxisLabel.rotateto prevent overlap. The rotation angel usually depends on the element width and number of the labels. Now we need to calculate the rotation manually. It would be more convinient if it could be calculated automatically.

What does the proposed API look like?

xAxis.axisLabel.rotate: 'auto'
yYxis.axisLabel.rotate: 'auto'

or

xAxis.axisLabel.rotate: (labels, dom) => {} // or some other params
@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
en This issue is in English new-feature pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

1 participant