Skip to content

[Bug] Cannot drag when yAxis min and max not set and first symbol dragged beyond the displayed value by ECharts #21663

Description

@corentinthibaud

Version

6.1.0

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=line-draggable&code=tVbbbhoxEH3nK-YlWlDJBsitgrZS1DZSpVSJVCq1QTyYXYe1tGuvbHPZVPx7x5e9ACFKenkBj-05npkzcyASXGlQRTYT6Tf2SOE9DHqjltuOiSa4MWkBTM56XTju96ZdYxyfGuvcG5cX4XkX3bx5cWrMs9IcDMJ-F85709Z01BK5ZoIj5i8800yndGiXaNC1HkIwlgV8kmQ-Z3wOOqGKwp1gXKvAoAGk9MFciyjXVAa4tTH7WohUs7zCkmw-p_KW400uOPW-D0JmRKPfEB4WPLKRtHMiSaY63hNAUr2QuO9NgOAHosCbynYOoanNpDcNtbhmaxq3B53GneDdTH74ediv3_TzNzoju9iUORHOMFqMEaMlqaJmby5ZXCUpMN_g7ZFPbia0Fhnu9AdHVV3WV2umSoeMIRRS2HMOGVkP4dIbusiRiWBJ0kVZLYKuN4wbgkDweyqFD6QOsWjC_xmEKce9MIGbLoOKBo-mUhYjzw7O5_OFxxRD95EjrSxFTr-K2DhYul0h3fnzgDaDvwJkXCHiP4xwB_BVEeKnnTpFJaPIzHZNTe8EpEL276VIULWnMiF0MsQJWtiGs3uVOAwb6_LUEDi0n3UIrc2opages4yKhW7Xw-bG7OQEruIYVEJisYKIySilCtqrhEUJMAVcaFgyxWYp7WCbA-UElxCjLITonhUfEyJ1iC_cWjlpuwTnkuQI4YIJM5I3HmaaZl17YEu5N-6lWVXFRVXVBcdXKOamsXwfNXJJpR6LOxzktB2Y4Qy6YJ7q1H6YpQGsHwCImlTajWJnAxWqIcknMKjOfM9YOrkv0jZdSInRT1Oy3QPBzVFT_eI1VqWoy-FuWcUtVbhdVa0LE50wFeLCfhdTr1k7gQmeiYWimVhiBLvk13URq7GT7fqFZ_GwlQ7DJTgzL4R7HAKKoDexU-2XUeEN3t90oYdfK8axN0MSx5-X-FNzw5SmnMp2IKlCSpDmRY7P0DvfFehStgX2Y1Cq2lP3qgy2T3w-_7e5X9fEh0pUp_A0iVuJxEzlREfJlfXw2ZRibNxZ7qfMida21FWgLnG73A_jafJfHIZ1xzD2gZ8ZBSyle8H-oFcHU_xvs1Pbaymy7eoaX1NUFMLvtglK_TzE_rae14q-p-l7euwU2WiyT-43&enc=deflate

Steps to Reproduce

  1. Follow this tutorial: Drag
  2. Remove the minimum and maximum fields in yAxis to use the default function
  3. Drag a graphic symbol to a value not displayed on the yAxis (for instance 1000).
  4. Try to drag another symbol => action fail

Current Behavior

After dragging a symbol outside of the automatic generated yAxis bounds, ECharts updates the yAxis and visually put the graphic symbols at the right position. However, when trying to drag another symbol, it does not let the user.

This bug does not exist when yAxis has a minimum value and a maximum value set.

Expected Behavior

After dragging a first symbol, the yAxis should be recalculated automatically, and the graphic positions automatically recalculated so that the user can drag another symbol.

Environment

- OS: Windows 11
- Browser: Brave 1.91.178 / Edge 149.0.4022.80 / Firefox 126.0.1 / Firefox 127.0 / Firefox 152.0.3 
- Framework: None

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
    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