apache / apache/echarts

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

Open
#21,663 0 comments 0 reactions 0 assignees View on GitHub
bug en pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### 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](https://echarts.apache.org/handbook/en/how-to/interaction/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

```markdown
- 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_

Contributor guide

Open the contributing guide

Research direction

Start with the linked line-draggable minimal reproduction and the Drag tutorial, then reproduce the failure with yAxis min and max removed. Trace how dragging a symbol beyond the displayed yAxis range updates the axis and graphic positions; done means subsequent symbols can also be dragged after the automatic recalculation.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.