apache / apache/echarts

[Feature] 类目轴有没有什么办法能实现强制显示最大、最小刻度,且中间坐标平均分段显示?

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

Description

### What problem does this feature solve?

Image
x轴虽然通过showMaxLabel、showMinLabel强制显示了最大、最小值,但是中间的坐标没有平均分段显示(2024-03-31到2025-09-30的间隔明显和前面的间隔)不一样

### What does the proposed API look like?

能不能让最大刻度、最小刻度之间的刻度平均分段显示?现在虽然可以通过设置axisLabel.interval、axisLabel.formatter等方式实现,但都比较麻烦,需要根据数据量、容器宽度等变量动态设置,有没有现成的api能实现类似效果?

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.