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

161
Views
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
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!