Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

198
Vistas
How reset to default zoom/scale a plot type contour created with React-plotly.js?

I'm using React-Plotly to display a contour graph like this:

  <Plot
          data={surfacesData}
          layout={layout}
          // Id to be used by Plotly methods (download,relayout....)
          divId={"surfaces_container"}
          config={{ displayModeBar: false }}
 />

Layout definition

When i tried to call Plotly.relayout in this plot (type contour) using the following code:

 Plotly.relayout("surfaces_container", {
        "scene.xaxis.autorange":true,
        "scene.yaxis.autorange":true
      });

The following error appears:

"plotly.min.js:107179 Uncaught TypeError: Cannot read properties of undefined (reading '_inputDomain')"

[error][2] [2]: https://i.stack.imgur.com/ibZnq.png

How could i reset scale ? i also tried to change xaxis.range instead of scene.xaxis.range... But still not working, and i dont want to force a reset like passing new autorange value as prop.

Plotly.relayout works when i try to change camera position in plot type mesh3d like.

Plotly.relayout("surfaces_container", {
        camera :{
          up:{x:0, y:0, z:1},
          center:{x:0, y:0, z:0},
          eye:{x:1.25, y:1.25, z:1.25}
      }});

Thank you :)

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda