Skip to content

[Bug] The boundaryGap settings ​caused errors​ in the logarithmic axis rendering. #21058

Open
@chengzhanli

Description

@chengzhanli

Version

latest

Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeAoWsDmAnCATAXMmurAMYxgCGE0AMpQEYCmANoQOQAWwOAXhZRbsANMXQB3PGE4dKAVzDARY2JyYQMnMLIVLRJWCyYAzbbADsAFn0lFIQgFYAjDfQ5NZyw9ewGwMIoAtoQAzE7EAL42AB4AgtEQAM6EqAZgAJ4gTBwswBjKBomkgtmwYFhyTD4A9NW-wHLQuJRY6QDilPawANoADAB0vd6wA0MAusKwtbBMWFg8sICF0YDp3oCYqYD30Sp-jc2tHV19g73HvS4jgw4TU3XuWrCA98qAp3KAxtaAdh6AG36AbEoqiSAsEGAAHJyQLMLCEcw-SgJRIAFQgpAA1ikVOhEtxxIRypUfOgaIk8KVsUwVFEVIEaDx4UiUQY0RisRUqqjYL9_kCQWDCABOUk-CnQHgAZT-ANoNFKqTp6OAmLKTNJkRs6XiSUI3RUUrSmVK7Fy-VxrOKRkZOJZ022TRa7U66tGw3tV2ms3mWCWa02dPqO2t-ztRxOZ0dk2mtzADxeH2-XrZAOBoNmEMN0KS1ORRC99NlpuZmdg-MJOZZZK9AqpCPTWulDPlZrzsY5CfBsF5XpLdLLWBF7PF0ElLKzcuJxcV6AmxGaVESTDMGoMVfQuAggSY0AJMGSPXY0REsHY6XY45jDSwpFKc8z3XYTkGTmODlOADZzL0AByWJyP1-76-3-9Pl930_b8j0vdgACZwN6cDH36SxHwccxuUsV9emfJxv0mCCoJguCEKQlC0PMDDDxZUDChPM8AAkmEoXBE1gYxBGnUdYFA6ccCYTcL3QBdYF4IwADdWEIO9DWgSgVw4aIAFoD0NDIshyCUCjpSdKGnMAAEkmiYaJCF6Q0VRhHT6P0kZDVXch6NpTNzO3VSvXSDgDxHAwImIMYUAiABuIA

Steps to Reproduce

  1. set boundaryGap to [0.05, 0.05]

Current Behavior

fallback to (1,10)

Expected Behavior

There is a flaw in the percentage calculation logic boundaryGap in the current implementation of the logarithmic axis. Based on the observed behavior, it seems that the boundary gap is calculated using the original value, which may produce negative or zero values and cause axis rendering errors. But boundaryGap is fundamentally a visual effect property. Its calculation should be based on the log(min | max) value to achieve the desired visual behavior.

Environment

- OS:
- Browser:
- Framework:

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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions