Skip to content

[Feature] xAxis.axisLabel.formatter and xAxis.axisLabel.interval add more data in callback function. #16150

@Mike-Jia

Description

@Mike-Jia

What problem does this feature solve?

We want xAxis axisLabel more short and show enough information, like this:

image
image

According current xAxis.interval and xAxis.axisLabel.interval xAxis.axisLabel.formatter callback function, there is no enough information to do that. Please add the full data into the callback parameter or provide a new xAxis.axisLabel.interval model.

What does the proposed API look like?

xAxis.axisLabel.interval = (index:number, value: string, data:any[]) => boolean;
xAxis.axisLabel.formatter = (index:number, value: string, data:any[]) => string;

Metadata

Metadata

Assignees

No one assigned

    Labels

    enThis issue is in Englishnew-featurependingWe are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.waiting-for: community

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions