apache / apache/echarts

希望x轴的label能够限制最大的换行数,例如超过两行,加省略

Open
#16,259 1 comment 0 reactions 0 assignees View on GitHub
new-feature topic: label
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### What problem does this feature solve?

xAxis.axisLabel. overflow 有个能换行的属性。但是无限的换行会导致高度很长。所以我希望x轴的label能够限制最大的换行数,例如超过两行,加省略。

想下面的一样

![image](https://user-images.githubusercontent.com/52202268/146896238-2bbec4dc-927f-41db-9a63-34e6b9b3aff2.png)

### What does the proposed API look like?

xAxis.axisLabel. overflow 有个能换行的属性。但是无限的换行会导致高度很长。所以我希望x轴的label能够限制最大的换行数,例如超过两行,加省略。

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.