Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

199
Views
echarts: Responsivo por animación

Construí una animación que cambia de posición y tamaño, y coloqué el gráfico creado con echarts dentro. Pero no sé cómo hacer que funcione de manera receptiva.

ingrese la descripción de la imagen aquí

・Lo que probé

Escribí la función de cambio de tamaño consultando la documentación oficial de Echarts.

https://echarts.apache.org/en/api.html#echartsInstance.resize

 window.onresize = function () { myChart.resize(); })

ingrese la descripción de la imagen aquí

El gráfico cambia de tamaño al detectar el tamaño de la ventana, pero no por la animación. ¿Cómo puedo cambiar el tamaño del gráfico a través de la animación?

・Aquí está el código completo

https://codesandbox.io/s/echarts-test-3vg2t?file=/src/chart.js

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!