[Bug] Restore feature not properly resetting zoom feature
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 52/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- typescript
- Ambito
- data-visualization
Direzione di ricerca
Riproduci la regressione nell’esempio ufficiale line-aqi di ECharts usando i pulsanti della toolbox Zoom e Restore, quindi confronta il comportamento con ECharts 6.0.0. Esamina l’interazione Zoom/Restore e il comportamento del listener datazoom; il lavoro è completato quando Restore reimposta il grafico, lo stato della toolbox e l’icona del mouse, e i ripristini ripetuti non accumulano output di datazoom.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Version
6.1.0
Link to Minimal Reproduction
All echarts official example demos with Zoom/Zoom Reset and Restore toolbox buttons, e.g: https://echarts.apache.org/examples/en/editor.html?c=line-aqi
Steps to Reproduce
- Run any echarts example demo that has Zoom/Zoom Reset and Restore toolbox buttons
-- for example: https://echarts.apache.org/examples/en/editor.html?c=line-aqi - Move the mouse over the chart
-- Mouse icon will NOT display the zoom icon ("+")
-- good - Click on the Zoom toolbox button and then move the mouse over the chart
-- The Mouse icon will change to "+" the zoom icon
-- good - Click and drag the mouse on the chart
-- The chart will zoom in
-- good - Click the Restore toolbox button
-- Both the chartand the toolbox buttons/icons will reset
-- good - Move your mouse over the chart
-- Mouse icon is the "+" zoom icon
-- bad
Current Behavior
The Restore toolbox button fails to fully restore when the Zoom button is pressed followed by pressing the Restore toolbox button
See the video listed below
https://github.com/user-attachments/assets/675eb9c7-339b-4f4c-86f4-8bd05ae9e6d1
Expected Behavior
After pressing the Restore toolbox button, the chart and the toolbox buttons and the mouse icon are all restored to the original defaults
Environment
- OS: N/A
- Browser: N/A
- Framework: N/A
This issue can be reduced with Echarts Demo Examples. The issue is independent of my development environment or the browser used in testing.
Any additional comments?
This is a regression in ECharts 6.1.0. The restore feature worked properly in ECharts 6.0.0.
In addition, if you add a listener for the zoom action:
myChart.on('datazoom', (params) => {
console.log("data zoom params", params);
})
You can see that the restore button is not properly resetting zoom.
The video listed below shows the following:
1). Adding the zoom listener to the official echarts example demo
2) Repeating the following steps
-- click the zoom button, zoom in using the mouse, click the restore
3). Every time 2) is repeated, the zoom listener results in an incremental increase of multiple console output
https://github.com/user-attachments/assets/bcc7b260-a3bf-4187-be1b-cdfaf9442998
- Lingua principale
- TypeScript
- Stelle
- 67.7k
- Fork
- 19.9k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di apache/echarts
-
[Bug] String formatter templates only replace the first occurrence of `{a}`/`{b}`/`{c}`Forse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaen pending
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
-
[Bug] Inverse axis collapses the grid with outerBoundsContain when a tick is near the axis edgeForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaen pending
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
en pending
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
en pending
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
[Bug] The zoom cursor in the toolbox area is incorrectForse già presa @waterWang l’ha presa 98 giorni fa. Apertabug en pending
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
Tutte le issue di apache/echarts
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
pollen-robotics/reachy-mini-desktop-app#341 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
mike-north/AgentMonitors#648 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
vercel-labs/ui#700 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 2 giorni