Skip to content

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

@xmdong

Description

@xmdong

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能实现类似效果?

Metadata

Metadata

Assignees

No one assigned

    Labels

    new-featurependingWe are not sure about whether this is a bug/new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions