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

166
Vistas
Plotly.js 3D scatter slider range

I'm using plotlyJs to plot a 3d scatter,I want to add the rangeslider on axis like 2D charts do with 'rangeslider' property. I added the following block to the layout param :

xaxis:{
         rangeslider :{
         autorange:true,
         bgcolor:"#F147F1",
         bordercolor:"#444",
         borderwidth:2,
                }

but nothing happen,however if I add the same block to 2D chart it works fine.

this is my 3D chart config :

let pointCount = 50;
        let i, r;
        for(i = 0; i < pointCount; i++)
        {
            r = 10 * Math.cos(i / 10);
            this.x.push(r * Math.cos(i));
            this.y.push(r * Math.sin(i));
            this.z.push(i);
            this.c.push(i)
        }
        Plotly.newPlot('chart', [{
            type: 'scatter3d',
            mode: 'lines',
            x: this.x,
            y: this.y,
            z: this.z,
            opacity: 1,
            line: {
                width: 6,
                color: this.c,
                colorscale: 'Viridis'
            },
        }],{
            width: 730,
            margin: {
                l:20,
                r:20,
                t:35,
                b:40,
            },
        },{
            displayModeBar:false,
            responsive: true
        });

Is there any solution to add the range slider to the chart ? here a complete example: https://codepen.io/azizd/pen/KKZRzBq

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