Skip to content

fix: Make axis.min/max behave consistently with series.data and axis.dataMin/Max#21638

Open
100pah wants to merge 1 commit into
releasefrom
fix/axis-min-max
Open

fix: Make axis.min/max behave consistently with series.data and axis.dataMin/Max#21638
100pah wants to merge 1 commit into
releasefrom
fix/axis-min-max

Conversation

@100pah
Copy link
Copy Markdown
Member

@100pah 100pah commented May 30, 2026

Brief Information

This pull request is in the type of:

  • [] bug fixing
  • new feature
  • others

What does this PR do?

Make axis.min/max behave consistently with the handling to series.data and axis.dataMin/Max - illegal values are ignored.

  • The previous behavior (before v6.1.0) is partially reasonable: axis.min/max: NaN coincidentally results in correct series rendering but abnormal axisLabel rendering, and cause axis extent to be series min/max.
  • v6.1.0 introduces a breaking - axis.min: NaN causes axis to be blank and series not to be rendered, which is not preferable, since some existing usage accidentally pass NaN, yet the chart still be renders.
  • The current behavior introduced in this PR is both reasonable and the closest to previous behavior (before v6.1.0).

…dataMin - illegal values are ignored. The previous behavior (before v6.1.0) is partially reasonable: `axis.min/max: NaN` coincidentally results in correct series rendering but abnormal axisLabel rendering, and cause axis extent to be series min/max. v6.1.0 introduces a breaking - `axis.min: NaN` causes axis to be blank and series not to be rendered. The current behavior is both reasonable and the closest to previous behavior.
@echarts-bot
Copy link
Copy Markdown

echarts-bot Bot commented May 30, 2026

Thanks for your contribution!
The community will review it ASAP. In the meanwhile, please checkout the coding standard and Wiki about How to make a pull request.

The pull request is marked to be PR: author is committer because you are a committer of this project.

To reviewers: If this PR is going to be described in the changelog in the future release, please make sure this PR has one of the following labels: PR: doc ready, PR: awaiting doc, PR: doc unchanged

This message is shown because the PR description doesn't contain the document related template.

@100pah 100pah added this to the 6.1.1 milestone May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant