[Bug] Restore feature not properly resetting zoom feature
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 52/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- typescript
- Área
- data-visualization
Línea de trabajo
Reproduce la regresión en el ejemplo oficial de ECharts line-aqi usando los botones de la toolbox Zoom y Restore, y compara el comportamiento con ECharts 6.0.0. Inspecciona la interacción de Zoom/Restore y el comportamiento del listener de datazoom; se considera terminado cuando Restore restablece el gráfico, el estado de la toolbox y el icono del ratón, y las restauraciones repetidas no acumulan salida de datazoom.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- TypeScript
- Estrellas
- 67.7k
- Forks
- 19.9k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apache/echarts
-
[Bug] String formatter templates only replace the first occurrence of `{a}`/`{b}`/`{c}`Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoen pending
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
-
[Bug] Inverse axis collapses the grid with outerBoundsContain when a tick is near the axis edgePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoen pending
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
en pending
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
en pending
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
[Bug] The zoom cursor in the toolbox area is incorrectPosiblemente ocupada @waterWang la tomó hace 98 días. Abiertobug en pending
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Todos los issues de apache/echarts
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
pollen-robotics/reachy-mini-desktop-app#341 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
mike-north/AgentMonitors#648 ·
Los mantenedores suelen responder en 1 día
-
Position: a popup placed again from between two layout steps lands a fraction of a pixel offAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
vercel-labs/ui#700 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 2 días