apache / apache/echarts

[Feature] Add an attribute that allows the label to automatically adjust its rotation based on the spacing between two ticks and the available width.

Open
#21,121 0 comments 0 reactions 0 assignees View on GitHub
new-feature
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### What problem does this feature solve?

Can an attribute be added to the axis so that the label can automatically adjust its rotation based on the space between two ticks and the available width? For example, when the space between two ticks is not sufficient to display the label properly, it would automatically rotate to an angle that fits within the tick spacing.

Image

Image

### What does the proposed API look like?

Consider adding an `auto` option to `xAxis.axisLabel.rotate` to achieve this functionality.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.