Skip to content

[Bug] cannot set axis.min/axis.max for type='time' chart #17986

@bbcfive

Description

@bbcfive

Version

5.4.0

Link to Minimal Reproduction

No response

Steps to Reproduce

  1. xAxis type is 'time', we has a tab option for '4H/1D/7D', we want the xAxisLabel only show the period for choosed option, eg: if option is 4H, the min label is 4H before Now, the max label is Now.

Current Behavior

But it doesn't work by setting min/max to limit the label range:
image

Expected Behavior

Expected the min and max value of axisLabel works, and the scale can be fixed by setting ticks length.

Environment

OS: macOS Monterey
Browser: Chrome 96.0.4664.55
Framework React@18

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions