Skip to content

[Bug] log axis ticks not containing value less than 1e-10 #21099

@Ovilia

Description

@Ovilia

Version

6.0.0-beta.1

Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=geo-map-scatter&code=MYewdgzgLgBAJgQygmBeGBtAUDTAGAOj2LwEYB2ADgCYBWMy8gNmqfIBYBOagGhlIJtKAZnbtqedi3bC8nYQFMAtJwC6PHPgISSuvcXZ8BtasM6VaJvLUrdO5cstLD1mjIVn2mw4aarUuJiY-TgJOdlphejEfUk42J3ZXXAxSPmowoMtqHPY5dkpSWkTVLFUAbiwsEAAHKABLcDQYAG9NaABPABsFAC5WzVwACwV6gHMhqH6AclJiAFJpjVxcAHd6uCghmbm8Rc0AX2WYMYAnDf7sFYHr3FAwZHqwABkEACMFLv6oU4BXBUGMAOmmSMA6AEEAB71CCXQFtW4wKAdGp9GDTLogMZLQG4TFjABCCAgaLmx2uCGhEFeHy-N0RMAAZiBTgBbJBQBSnfqM35gYANJoACgAbgguv8AJT0hkwU4KKC_U5gGBiiUKAhQEAAUUhNXACge9XFQrwksqsuBiKtKxtoMhUJhcOuCNuyNRM3xOMR-KJJP6c0BduOJPOClhmHhuPgSAQ5JW7rRGKeCm9twgQxAqwAyh1WW8QHTGeKSUGQVgDuUgA

Steps to Reproduce

Image

Ticks less than 1e-10 are not displayed.

This is probably caused by fixRound not considering the precision of the data and using 1e-10 as a fixed precision.

The correct way is to calculate the precision from data as this example does.

Current Behavior

No axis ticks smaller than 1e-10.

Expected Behavior

Axis ticks like 1e-11, 1e-12, 1e-13, etc. should be displayed.

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions