Skip to content

[Bug] Axis pointer and tooltip with trigger "axis" behaves unpredictably when data only exists outside axis min and max #20228

@kianj2

Description

@kianj2

Version

5.5.1

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=line-simple&lang=ts&code=PYBwLglsB2AEC8sDeAoWszGAG0iAXMmuhgE4QDmFApqYQOQCGAHhAM73EC-ANMcwEFWbQqhIYAniGoNIAW2r0-4luwAKwCNDC1RxcdkYAjatj3jxbABbAA7oTCkArtX0lebj-LlbC0arawACKMOgAU9ABMAAyRACwAtNEAHEkAjAAq0dH42bnRAHTZ0QBa9ACUyiRyLH4BwaHUETHxSanRmZEAzPgArACcff0F_aNl5dxVEkLs5iRgUjKw9ABujNgunOhesGy0ENQisADabmIWC9IM2FqKVeIAJqGMhKcWJMf-gSHhUbGJ0QA7AkutEMt0hkMRmMKjxYGkALr3Cyfeo_Jp_VopJJdLI5PLZIrZcZwyIItzocniLjEclcADcQA

Steps to Reproduce

  1. Move mouse around chart

Current Behavior

The axis pointer seems to be triggered wherever the mouse moves. In addition, the axis pointer appears to take a performance hit.

The tooltip also appears to behave unexpectedly. The tooltip is being triggered on and displaying values that are outside the X axis min and max. I explain why this is unexpected in the "Expected Behavior" section.

Expected Behavior

The axis pointer is not triggered at all.

Edit one of the data points to be within the x axis min and max. Notice how the axis pointer and tooltip only trigger on that one data point. This makes me expect that if data is outside of the min and max, it should not trigger the axis pointer/tooltip. However, in the example I linked (where all data is outside the min and max) this is not the case.

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